Code Index

Namespaces

Classes


Class CKFinder.dialog.definition.textarea


Extends CKFinder.dialog.definition.uiElement.

Class Summary
Constructor Attributes Constructor Name and Description
 
The definition of a text field (multiple lines).
Field Summary
Field Attributes Field Name and Description
 
The number of columns.
 
The default value.
 
The label of the UI element.
 
The number of rows.
 
(Optional) The validation function.
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.textarea()
Since: 2.0
The definition of a text field (multiple lines).
This class is not really part of the API. It just illustrates the properties that developers can use to define and create textarea.

Once the dialog is opened, the created element becomes a CKFinder.ui.dialog.textarea 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 : 'textarea',
	id : 'message',
	label : 'Your comment',
	'default' : '',
	validate : function() {
		if ( this.getValue().length < 5 )
		{
			api.openMsgDialog( 'The comment is too short.' );
			return false;
		}
	}
}
Field Detail
{Number} cols
Since: 2.0
The number of columns.

{String} default
Since: 2.0
The default value.

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

{Number} rows
Since: 2.0
The number of rows.

{Function} validate
Since: 2.0
(Optional) The validation function.

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