packages/components/pipes/eui-truncate.pipe.ts
Pipe for truncating strings to a specified length with trailing indicator. Supports both start and end truncation based on limit sign. Positive limit truncates from the end, negative limit truncates from the start. Commonly used for displaying long text in constrained spaces like tables, cards, or lists.
| Name | euiTruncate |
| transform | ||||||||||||||||
transform(value: string, limit: number, trail: string)
|
||||||||||||||||
|
Parameters :
Returns :
string
|