Description

Creates a table cell <td>

Usage

as element:
<table:cell
       name="{string}"
       [default-value="{string}"]
       [separator="{string}"]
       [date-format="{string}"]
       [number-format="{string}"]
       [show="{Number}"]
       [prefix="{string}"]
       [suffix="{string}"]
       [url="{string}"]
       [url-field="{string}"]
       [target="{string}"]
       [action="{string}"]
       [query="{string}"]>
</table:cell>

Directive info

  • This directive creates new scope.

Parameters

ParamTypeDetails
namestringName of the field to render
default-value (optional)stringDefault value to show when no value is present in the index.
separator (optional)stringSeparator character or sequence to split a Field into multiple values. Setting the separator to “;” would turn the value “company1; company2; company3” into a list of 3 values.
date-format (optional)stringHow to format the date. See #/api/lightning.filter:dateFormat[date format filter] for valid formats.
number-format (optional)stringFormat string for the numbers used using the Java DecimalFormat pattern. Default: ‘,0.‘
show (optional)NumberNumber of values to show if the field is multivalued. Default: No limit (-1)
prefix (optional)stringText to prepend to index values (not applied to default value). E.g. if the index field ‘money’ contains the value ‘10’. A prefix=”£” would result in ‘£10’ being displayed as the value.
suffix (optional)stringText to append to index values (not applied to default value). E.g. if the index field ‘weight’ contains the value ‘10’. A suffix=” kg.” would result in ‘10 kg.’ being displayed as the value.
url (optional)stringURL to redirect to when the field is clicked;
url-field (optional)stringField containing a URL to redirect to when the field is clicked;
target (optional)stringSet an HTML target attribute for the anchor tag. For example use _blank to have the generated link open the results in a new window. (Not applicable to query)
action (optional)stringAlternative page to submit the query parameters to - defaults to current page. If a ‘url’ attribute is provided the action is ignored and query parameters are not included in the request.
query (optional)stringWhen set, the value of the named field will be displayed as a hyperlink that submits the query again with this field and its value as a search constraint.