콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
2319 화면

Hi,

I'm using this code to display then product description:


    



I only want to display the first 100 or so letters followed by '...'. How is this done?

I found this code somewhere:


So, following that logic, I tried:



 I also tried replacing t-field with t-esc ... Anyone?

아바타
취소
베스트 답변
if you need to show .. after a certain width of a field in report add the following style give the max-width according to your need and if you don't need to show anything of the description after a certain width you can change overflow: ellipsis; to overflow: hidden;

style="max-width: px; display: inline-block; overflow: ellipsis; white-space: nowrap;"


아바타
취소
베스트 답변

Hi,

You can add a wrap style for it 

example 1)


style 1:


.name-adjust{

    width: 100px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


OR


style 2:


.name-adjust{

    overflow: visible !important;

    text-overflow: ellipsis !important;

    white-space: normal;

}

Regards

아바타
취소
관련 게시물 답글 화면 활동
0
4월 20
4156
1
8월 19
6994
1
10월 16
7125
1
2월 25
3034
3
12월 24
3272