cancel
Showing results for 
Search instead for 
Did you mean: 

word ellipsis for Text Area

0 Kudos

Hi All, I am using Text Area control in the list. Text in the text Area will be displayed in the two lines , if there is more words i.e if the text is not fitted within the 2 lines of the text area , text inside the Text Area should be displayed as ellipsis. How can i achieve ellipsis using Text Area ? Can someone help me in this. Thanks, Hemapriya                    

Accepted Solutions (0)

Answers (1)

Answers (1)

yogesh_beria
Explorer
0 Kudos

Why not use a Text control with maxLines property instead?
Refer to SAPUI5 Explored

for the Text control's example.

0 Kudos

Hi Yogesh, I am able to achieve the ellipsis using the Text control , how can i edit the value in the text control similar to textArea control. Thanks, Hemapriya

yogesh_beria
Explorer
0 Kudos

Hi Hemapriya,

You can't edit a Text control. It is a display only control.

If you are using TextArea for editing, you can't have an ellipsis.

That is because when a user is allowed to edit the text, he can't be seeing half of the text and then

ellipsis.

If he is editing a text, the whole text should be available for edit. What if the user wants to enter some more text at the end of the existing text. If he gets an ellipsis, where does he add the text?

Hope you understand the scenario.

Regards,

Yogesh