Skip to content

Commit cb04623

Browse files
TextTruncate example and SplitWord documented (#950)
Added missing documentation and examples to Enum.TextTruncate ## Changes <!-- Please summarize your changes. --> <!-- Please link to any applicable information (forum posts, bug reports, etc.). --> None: <img width="246" alt="image" src="https://github.com/user-attachments/assets/abb15a94-eaf3-4fae-a88f-3599665f1691" /> AtEnd: <img width="246" alt="image" src="https://github.com/user-attachments/assets/50028bf2-2d74-4214-a6ab-c50d4e0a417b" /> SplitWord: <img width="236" alt="image" src="https://github.com/user-attachments/assets/efea0f80-0897-4e4d-9887-eebc1395cdf9" /> ## Checks By submitting your pull request for review, you agree to the following: - [x] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [x] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [x] To the best of my knowledge, all proposed changes are accurate.
1 parent f3a6b7d commit cb04623

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

content/en-us/reference/engine/enums/TextTruncate.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,32 @@ items:
1717
- name: AtEnd
1818
summary: |
1919
Text is truncated at the end of the text; extra graphemes that cannot fit
20-
into the space are replaced with `...`.
20+
into the space are replaced with `...`. Word boundaries are respected if
21+
possible.
22+
23+
For example, if the control is between -> and <- like so:
24+
25+
`->Long text is truncated at the en<-d of the last complete word`
26+
27+
The text will be:
28+
29+
`Long text is truncated at the...`
2130
value: 1
2231
tags: []
2332
deprecation_message: ''
2433
- name: SplitWord
25-
summary: ''
34+
summary: |
35+
If the end of the line occurs in the middle of a word, the text is
36+
truncated inside of that word. Extra graphemes that cannot fit into the
37+
space are replaced with `...`.
38+
39+
For example, if the control is between -> and <- like so:
40+
41+
`->Long text is truncated at the en<-d of the last complete word`
42+
43+
The text will be:
44+
45+
`Long text is truncated at the en...`
2646
value: 2
2747
tags: []
2848
deprecation_message: ''

0 commit comments

Comments
 (0)