File

packages/components/pipes/eui-truncate.pipe.ts

Description

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.

Metadata

Methods

transform
transform(value: string, limit: number, trail: string)
Parameters :
Name Type Optional Default value
value string No
limit number No 40
trail string No '\u2026'
Returns : string

results matching ""

    No results matching ""