Editor: Disable buttons & how to target it

Editor: Disable buttons & how to target it

raydlevel5raydlevel5 Posts: 98Questions: 43Answers: 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: 6,890Questions: 0Answers: 1,177

    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

Sign In or Register to comment.