Back to API Reference
Class
EllipsisModifier
Truncates text that overflows its container and appends an ellipsis (...).
Remarks
Parameter: optional position (0-1) controlling where the ellipsis appears: - 0: Truncates from the start, ellipsis at the beginning - 0.5: Truncates from the middle, ellipsis in the center - 1 (default): Truncates from the end, ellipsis at the end The modifier automatically detects overflow based on container height (with word wrap) or width (without word wrap) and uses binary search to find the optimal truncation point.
