Which of the following codes can be used to achieve the above requirements?

When a developer uses the Text component for development, due to the long length of the input string, the content in the middle of the text needs to be truncated with ellipses.

Which of the following codes can be used to achieve the above requirements?
A . ohos:truncation_mode=ellipsis_at_start
B . ohos: truncation_mode=auto_scrolling
C . ohos:truncation_mode=ellipsis_at_middle
D . ohos:truncation_mode=ellipsis_at_end

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments