Table and add new button

I am trying to disable the add new button (PLUS button +) on a table under some circumstances in code to generate the JSON for the form. Is there a property under “options” that I can set in order to disable the button?

I guess you can try hidding that by writing a custom css of the classname of the add button.
not sure if there are better solutions for this.

Hi @dcjarvisvt,

Most of our table renderers support a readonly flag which then hides their plus button, however the whole table will become disabled.

Some of our renderers will disable the plus button if the maxItems of the array is reached.

If the renderer set of your choice does not support this feature, feel free to report an issue in the repo and possibly contribute this enhancement.

What you can always do on your side is to use a custom renderer in which you explicitly implement the add-button behavior you would like to see, or go the workaround way suggested by @howdyAnkit to simply hide the button via CSS if you don’t want to see it anymore.