How can I change the size of a modal of a column

I have a table with a custom column. The custom column is of type modal. Now I don't see any way how I can get this modal into the inspector to change the size. When I click on the edit-button I don't get the modal in the inspector.

1 Like

Hi @Noz,

It seems that you cannot edit the modal’s size when modal is the type of custom columns.

However, what you can do:

  • Add a modal from the list of components and name it modalForTable

  • Create a JS query (openModalForTableQuery) to open the modal :

modalForTable.open()

  • Set the custom column type to Button and the OnClick method to openModalForTableQuery

  • Finally, set Hide when true property of the modalForTable to true, since you always want it to be hidden.

This way you can easily change the modal’s size.

2 Likes

This does not work anymore, since you cannot run Javascript from a TableButton:

This actually still works with a JS query.

Here is mine for reference:

image
image

How I hide the button that opens the modal?