Classes (0) | Namespaces (0) |
Properties (0) | Static properties (3) |
Methods (0) | Static methods (0) |
Events (0) |
Properties (0) | Static properties (3) |
Methods (0) | Static methods (0) |
Events (0) |
Model of the buttons that can be used with the Editor#buttons method for creating and displaying buttons (also the Editor#button argument option for the Editor#create, Editor#edit and Editor#remove methods). Although you don't need to extend this object, it is available for reference to show the options available.
The CSS class(es) to apply to the button which can be useful for styling buttons which preform different functions each with a distinctive visual appearance.
Callback function which the button is activated. For example for a 'submit'
button you would call the Editor#submit API method, while for a cancel button
you would call the Editor#close API method. Note that the function is executed
in the scope of the Editor instance, so you can call the Editor's API methods
using the this
keyword.
The text to put into the button. This can be any HTML string you wish as it will be rendered as HTML (allowing images etc to be shown inside the button).
The CSS class(es) to apply to the button which can be useful for styling buttons which preform different functions each with a distinctive visual appearance.
Callback function which the button is activated. For example for a 'submit'
button you would call the Editor#submit API method, while for a cancel button
you would call the Editor#close API method. Note that the function is executed
in the scope of the Editor instance, so you can call the Editor's API methods
using the this
keyword.
The text to put into the button. This can be any HTML string you wish as it will be rendered as HTML (allowing images etc to be shown inside the button).