Remove Update button on Editor - ReadOnly Editor View
Remove Update button on Editor - ReadOnly Editor View
I'm creating an Editor instance that is read-only. I disable each field via a call to
<code>
editor.on( 'open', function () {
editor.disable( 'field1' );
editor.disable( 'field2' );
} );
</code>
and then a call to put in an extra button to close Editor
<code>
TableTools.BUTTONS.editor_edit.formButtons.push({ "label": "Close", "fn": function (e) { this.close(); } });
</code>
But how can I remove the Update button ?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi,
Rather than using
formButtons.push
- you could just replace the array with that of your how choice - probably best doing it the button definition withsExtends
rather than setting a default though. InaButtons
:Regards,
Allan
Perfect.
Explains why I couldn't work out how to do it with calls to .push et. al.
Some more crumbs for those coming later ;