Code Index

Namespaces

Classes


Class CKFinder.dialog.definition.button


Extends CKFinder.dialog.definition.uiElement.

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 CKFinder.dialog.definition.uiElement:
accessKey, className, hidden, id, onBlur, onChange, onClick, onDblclick, onFocus, onHide, onKeyDown, onKeypress, onKeyup, onLoad, onMousedown, onMouseout, onMouseover, onMouseup, onShow, style, title, type
Class Detail
CKFinder.dialog.definition.button()
Since: 2.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 CKFinder.ui.dialog.button object and can be accessed with CKFinder.dialog#getContentElement.
For a complete example of dialog definition, please check CKFinder.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 = CKFinder.ui.dialog.button
		alert( 'Clicked: ' + this.id );
	}
}
Field Detail
{Boolean} disabled
Since: 2.0
Whether the button is disabled.

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

Copyright © 2007-2015, CKSource - Frederico Knabben. All rights reserved.