تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2333 أدوات العرض

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
أبريل 20
4160
1
أغسطس 19
6999
1
أكتوبر 16
7139
1
فبراير 25
3038
3
ديسمبر 24
3290