Editor: Disable buttons & how to target it
Editor: Disable buttons & how to target it
I'm trying to disable a button in Editor. Basically, I want this form to be like a property sheet for view-only purposes...
I tried this: dteEffectiveDates.buttons().disable;
, this seems to work, but I get an error in the console: Cannot read property 'text' of undefined
Also, I don't fully understand the documentation. How do I specifically target this Update button? Do I pass in the tab index "0"?
This discussion has been closed.
Answers
Hi @raydlevel5 ,
The form buttons aren't managed by the Buttons extension, like the ones on the main table. Probably the easiest way to disable it is to toggle the
disabled
attribute of the element, something like this.Hope that helps,
Cheers,
Colin