Code Index | File Index



Class CKEDITOR.dialog.definition.button

Extends CKEDITOR.dialog.definition.uiElement.
Defined in: plugins/dialog/dialogDefinition.js.

Class Summary
Constructor Attributes Constructor Name and Description
The definition of a button.
Field Summary
Field Attributes Field Name and Description
Whether the button is disabled.
The label of the UI element.
Fields borrowed from class CKEDITOR.dialog.definition.uiElement:
align, className, commit, id, onHide, onLoad, onShow, setup, style, title, type
Class Detail
Since: 3.0
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: ' + );
Field Detail
{Boolean} disabled
Since: 3.0
Whether the button is disabled.

{String} label
Since: 3.0
The label of the UI element.

Copyright © 2003-2010, CKSource - Frederico Knabben. All rights reserved.