JSF Datatable Cell - Cut text and replace with “…” if content too long

后端 未结 1 337
终归单人心
终归单人心 2021-01-16 04:32

I would like to cut off a text if it is too long for the cell and add three dots \"...\" at the end (no wrapping). The problem is, that I cant just cut the content in java

相关标签:
1条回答
  • 2021-01-16 04:45

    Try CSS: Set a max-width and specify text-overflow with:

    text-overflow: ellipsis;
    
    0 讨论(0)
提交回复
热议问题