508
Views
5
Comments
how to fix the "table " widget's width in reactive web app?

Hi There,

how to fix the "table " widget`s width in reactive web app? 

now once the field has long words ,  it will beyond the boundary(see attached picture).

Many Thanks and have a nice day!

Jack

2023-10-21 19-42-11
Tousif Khan
Champion

Hello

There are  couple of options you can do here.

  • You can reduce the width of the column by removing extra padding which is applied by default on a table column.

  • You can Merge columns using calculated Columns on your aggregate.
  • You can use a text ellipsis function  and provide a rage on how many characters you want to show and after that range .... will be shown, and then add a tooltip to show full content.
  • You can add a scroll to a table which  can help you with the scroll when the width is more then the 12 cols.
    Inclose the table inside a container and add style
    width:100%;
    overflow: auto;
  • Right align numbers and column headings to look spacious and more organised when having smaller column widths. Centered text may work well if you have spacious columns.


You can also check similar posts with this issue.

I hope this helps
Best Regards
Tousif Khan

UserImage.jpg
Jack Bao

Hi Tousif,

It seems , it will not function.  I set the fixed width of the table widget, but it will  overlap the screen .  it seems  it affected by the content . once the more content , the width will expanded.  do you have any idea to fix it ?

BR,

Jack

2023-03-09 07-10-59
Vipasha Sharma

Hi Jack,

You can use CSS for horizontal scroll.

Wrap your table into container and user below CSS in container.

"overflow-x: auto;"

Happy Codding !!!!

Regards,

-V.S.-

2023-07-31 05-30-45
Siddharth Mukherji

Hi

You can adjust the width of header cells and row cell in percentage, according to your table content, such that the total width of all cols become 100%.

OR

 As already said  you can use CSS for horizontal scroll.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.