I noticed that the strict width property isn't working in my perspective table. It doesn't seem to work for my actual project table either. To test this out, I created a test view and added a new table with virtual data, which includes three columns: city, country, and population. I carefully entered the field names for each column, making sure the case sensitivity was correct. Then, I tried to adjust the width of the country column by checking the strict width option and changing the width to 400px, then 200px. But no matter what I did, the table kept splitting the column widths equally. I'm not sure what I'm missing here.
Is the px
necessary? I seem to remember this works with the number only?
4 Likes
I think David is right and you should remove the 'px' suffix.
I believe this is not a css property, and it expects a number. Adding a suffix breaks it.
2 Likes
It would be nice if it produced a warning as I imagine this would trip up most people
1 Like
It's in Perspective - Table | Ignition User Manual but way down in columns.
- width: The width of this column. If resize is enabled, specifies the column width on initial load. User can override this in the runtime if the Resizable option is enabled. Value is numeric.
If you set strictWidth : false
then the width determines the proportional width of each column. e.g. 10, 15, 25 (which sums to 50) would allocate 20%, 30% and 50% of the table width to the respective columns.