TextEllipsis
In non-string templates,it is necessary to use h-textellipsis.
1.2.0+ added
Basic
Custom prefix suffix
Customize more
Adapt to line breaks
use tooltip when hide
TextEllipsis Property
| Property |
Description |
Type |
Optional |
Default |
| text |
Text to be omitted |
String |
- |
- |
| height |
Limit height |
Number |
- |
- |
| isLimitHeight |
Whether to open the limit |
Boolean |
- |
true |
| useTooltip |
use tooltip when text hide |
Boolean |
- |
false |
| tooltipTheme |
tooltip theme |
String |
- |
|
TextEllipsis Event
| Event |
Description |
| show |
When isLimitHeight is true, all text is displayed |
| hide |
When isLimitHeight is true, text is omitted |