Editor: Disable buttons & how to target it

Editor: Disable buttons & how to target it

rldean1rldean1 Posts: 141Questions: 66Answers: 1

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"?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    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

This discussion has been closed.