I’ve been working with the Responsive layout with a table (Servoy Extra Component) as the main bulk of the form. I was hoping to add buttons to each row of the table which would each open up a window displaying more information.
I’ve looked at putting some HTML into a Calculation and having the column get it’s data from there, but this just printed the HTML as a string.
I would appreciate any help on the matter, thanks, Thomas.
The table component in the servoy-extra repository doesn’t support additional markup.
Moreover, this component is meant for fast, read-only basic grid display.
You could do this in a regular table-view form.
But I wonder if you have tried some CSS on the column ? (see attached image)
The most effective way to use the styleClassDataProvider may be to bind with a calculation.
Because then you really get a different value for potentially every record in the table.
If you are bound to a form variable, it won’t change per record.
In this case, you might as well just use the static property ‘styleClass’
The point is that I´ve tried to use the css you sent with a ServoyExtra Table column and it does not work. I tried with the StyleClass for the column and did not work and to use it with StyleClassDataprovider I used a form variable with the value table-button but did not work.
Interesting. The problem was I just copied your css definition into my css file, and the editor did not recognized the properties inside the definition (shown in black). I finally found that editing them and removing the trailing spaces solve the problem (shown in purple into the editor).