> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# table:cell

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

[localhost link]: http://localhost:3000/docs/4/app-studio/reference/tags/lightning.directive.tableCell

[mintlify link]: https://doc.lucidworks.com/docs/4/app-studio/reference/tags/lightning.directive.tableCell

[old doc.lw link]: https://doc.lucidworks.com/app-studio/4.2/1172

<LwTemplate />

## Description

Creates a table cell `<td>`

## Usage

as element:

```xml wrap  theme={"dark"}
<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

| Param                       | Type       | Details                                                                                                                                                                                         |
| --------------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name                        | **string** | Name of the field to render                                                                                                                                                                     |
| default-value  *(optional)* | **string** | Default value to show when no value is present in the index.                                                                                                                                    |
| separator  *(optional)*     | **string** | Separator 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)*   | **string** | How to format the date. See #/api/lightning.filter:dateFormat\[date format filter] for valid formats.                                                                                           |
| number-format  *(optional)* | **string** | Format string for the numbers used using the Java DecimalFormat pattern. Default: ',0.'                                                                                                         |
| show  *(optional)*          | **Number** | Number of values to show if the field is multivalued. Default: No limit (-1)                                                                                                                    |
| prefix  *(optional)*        | **string** | Text 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)*        | **string** | Text 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)*           | **string** | URL to redirect to when the field is clicked;                                                                                                                                                   |
| url-field  *(optional)*     | **string** | Field containing a URL to redirect to when the field is clicked;                                                                                                                                |
| target  *(optional)*        | **string** | Set 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)*        | **string** | Alternative 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)*         | **string** | When 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.                                      |
