Overview
Thetruncate transformation truncates the input to a specific size, with optional start position and ellipsis.
Syntax
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
variable | string | Yes | - | The text to truncate |
start | number | Yes | - | Start position for truncation |
end | number | No | - | Maximum character length |
ellipsis | boolean | Yes | - | Whether to add ellipsis (…) at the end |
smart | boolean | No | - | When true, truncates at the last space before the end position |