How to edit modal
-
I’d like to make some small changes to the layout and styling of the modal (the popup that appears when you click on the first column of a row in a table). What would be the best way of going about it?
I tried assigning a custom function to
responsive.details.rendererunder Advanced options, but similarly to a previous issue I wrote about, it overrode the whole modal. I guess there’s no getting around that? Maybe it would be somehow doable with just some CSS? Or should I try and figure out how to build a similar modal myself, from scratch?The changes I’d like to make include enlarging an image (would be nice if in the details you could see it more clearly) and removing the line clamp I set earlier (I’d like it to display all the text in the details, no matter how long). I’m not sure how to do this, though, because it seems that the data shown in the modal is always exactly the same as in the table. All my custom render functions apply there as well, so also, the CSS classes for each data element are the same as in the table.
I was also hoping I might able to someday make the data shown in the modal editable and assign custom functions to these data fields so you could use them to update values in the underlying database (it needs custom functions for sure, because it’s a view and not a table).
The page I need help with: [log in to see the link]
The topic ‘How to edit modal’ is closed to new replies.