CKEDITOR.dialog.definition.button
The definition of a button.
This class is not really part of the API. It just illustrates the properties that developers can use to define and create buttons.
Once the dialog is opened, the created element becomes a CKEDITOR.ui.dialog.button object and can be accessed with CKEDITOR.dialog.getContentElement.
For a complete example of dialog definition, please check CKEDITOR.dialog.add.
// There is no constructor for this class, the user just has to define an
// object with the appropriate properties.
// Example:
{
type: 'button',
id: 'buttonId',
label: 'Click me',
title: 'My title',
onClick: function() {
// this = CKEDITOR.ui.dialog.button
alert( 'Clicked: ' + this.id );
}
}
Filtering
Properties
-
align : String
CKEDITOR.dialog.definition.button#align
Horizontal alignment (in the container) of the UI element.
-
className : String
CKEDITOR.dialog.definition.button#className
CSS class names to append to the UI element.
-
commit : Function
CKEDITOR.dialog.definition.button#commit
Function to execute whenever the UI element's parent dialog's CKEDITOR.dialog.commitContent method is executed. It usually takes care of the respective UI element as a standalone element.
-
disabled : Boolean
CKEDITOR.dialog.definition.button#disabled
Whether the button is disabled.
-
id : String
CKEDITOR.dialog.definition.button#id
The ID of the UI element.
-
label : String
CKEDITOR.dialog.definition.button#label
The label of the UI element.
-
onHide : Function
CKEDITOR.dialog.definition.button#onHide
Function to execute whenever the UI element's parent dialog is closed.
-
onLoad : Function
CKEDITOR.dialog.definition.button#onLoad
Function to execute the first time the UI element is displayed.
-
onShow : Function
CKEDITOR.dialog.definition.button#onShow
Function to execute whenever the UI element's parent dialog is displayed.
-
requiredContent : String | Object | style
CKEDITOR.dialog.definition.button#requiredContent
The content that needs to be allowed to enable this UI element. All formats accepted by CKEDITOR.filter.check may be used.
When all UI elements in a tab are disabled, this tab will be disabled automatically.
-
setup : Function
CKEDITOR.dialog.definition.button#setup
Function to execute whenever the UI element's parent dialog's CKEDITOR.dialog.setupContent method is executed. It usually takes care of the respective UI element as a standalone element.
-
style : String
CKEDITOR.dialog.definition.button#style
Inline CSS classes to append to the UI element.
-
title : String
CKEDITOR.dialog.definition.button#title
The popup label of the UI element.
-
type : String
CKEDITOR.dialog.definition.button#type
The type of the UI element. Required.