▸ textEllipsisEnd(origin
, length
, ellipsis?
): undefined
| string
Clip the string from its end
Name | Type | Default value | Description |
---|---|---|---|
origin |
string |
undefined |
string to truncate |
length |
number |
undefined |
length to trim - does not include the length of the ellipsis |
ellipsis |
string |
DEFAULT_ELLIPSIS |
specify the ellipsis - default false '…' |
undefined
| string
clipped string
▸ textEllipsisMiddle(origin
, length
, ellipsis?
, rear_longer?
): undefined
| string
Clip the string from its middle
Name | Type | Default value | Description |
---|---|---|---|
origin |
string |
undefined |
string to truncate |
length |
number |
undefined |
length to trim - does not include the length of the ellipsis |
ellipsis |
string |
DEFAULT_ELLIPSIS |
specify the ellipsis - default false '…' |
rear_longer |
boolean |
false |
rear part be made longer if length is an odd number - default false |
undefined
| string
clipped string
▸ textEllipsisStart(origin
, length
, ellipsis?
): undefined
| string
Clip the string from its start
Name | Type | Default value | Description |
---|---|---|---|
origin |
string |
undefined |
string to truncate |
length |
number |
undefined |
length to trim - does not include the length of the ellipsis |
ellipsis |
string |
DEFAULT_ELLIPSIS |
specify the ellipsis - default false '…' |
undefined
| string
clipped string