CKEDITOR.dialog.definition.checkbox
The definition of a checkbox element.
This class is not really part of the API. It just illustrates the properties that developers can use to define and create groups of checkbox buttons.
Once the dialog is opened, the created element becomes a CKEDITOR.ui.dialog.checkbox 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: 'checkbox',
id: 'agree',
label: 'I agree',
'default': 'checked',
onClick: function() {
// this = CKEDITOR.ui.dialog.checkbox
alert( 'Checked: ' + this.getValue() );
}
}
Filtering
Properties
align : StringCKEDITOR.dialog.definition.checkbox#alignHorizontal alignment (in the container) of the UI element.
className : StringCKEDITOR.dialog.definition.checkbox#classNameCSS class names to append to the UI element.
commit : FunctionCKEDITOR.dialog.definition.checkbox#commitFunction 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.
default : StringCKEDITOR.dialog.definition.checkbox#defaultid : StringCKEDITOR.dialog.definition.checkbox#idThe ID of the UI element.
label : StringCKEDITOR.dialog.definition.checkbox#labelThe label of the UI element.
onHide : FunctionCKEDITOR.dialog.definition.checkbox#onHideFunction to execute whenever the UI element's parent dialog is closed.
onLoad : FunctionCKEDITOR.dialog.definition.checkbox#onLoadFunction to execute the first time the UI element is displayed.
onShow : FunctionCKEDITOR.dialog.definition.checkbox#onShowFunction to execute whenever the UI element's parent dialog is displayed.
requiredContent : String | Object | styleCKEDITOR.dialog.definition.checkbox#requiredContentThe 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 : FunctionCKEDITOR.dialog.definition.checkbox#setupFunction 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 : StringCKEDITOR.dialog.definition.checkbox#styleInline CSS classes to append to the UI element.
title : StringCKEDITOR.dialog.definition.checkbox#titleThe popup label of the UI element.
type : StringCKEDITOR.dialog.definition.checkbox#typeThe type of the UI element. Required.
validate : FunctionCKEDITOR.dialog.definition.checkbox#validate(Optional) The validation function.