Textareas

Snippets

	<!-- Textarea . Start -->
	<textarea name="name">Value</textarea>
	<!-- Textarea . End -->
	
Options
Type Value
Status locked, disabled valid, invalid, changed
Size tiny, small, default, medium, large, huge
Type Name Value
default type text, hidden, password, email, number
default id string
default name string
default value string
default title string
validation required required
validation maxlength int
validation minlength int
callback data-callback-initialize function Triggers on initialization
callback data-callback-create function Triggers on creation
callback data-callback-update function Triggers on updating
callback data-callback-change function Triggers on changing
callback data-callback-reset function Triggers on reset
callback data-callback-validate function Triggers on validation
callback data-callback-persist function Triggers on persisting
callback data-callback-hover function Triggers on hover
callback data-callback-focus function Triggers on focus
callback data-callback-lock function Triggers on locking
callback data-callback-unlock function Triggers on unlocking
callback data-callback-disable function Triggers on disabling
callback data-callback-enable function Triggers on enabling
callback data-callback-hide function Triggers on hiding
callback data-callback-show function Triggers on showing
Methods

	// Scan textareas
	basekit.components.textareas.scan(scope);
	
Parameters Value
scope null element

	// Initialize textareas
	basekit.components.textareas.initialize(scope);
	
Parameters Value
scope null container textarea(s)

	// Create textarea
	basekit.components.textareas.create(id,name,value,title,options,callback);
	
Parameters Value
id string
name string
value string
title string
options 'locked', 'disabled'
callback function

	// Update textareas
	basekit.components.textareas.update(scope,id,name,value,title,options);
	
Parameters Value
scope textarea(s)
id string
name string
value string
title string
options 'locked', 'disabled'

	// Set scope
	var scope= $('textarea');

	// Reset textareas
	basekit.components.textareas.reset(scope);
	
Parameters Value
scope null textarea(s)

	// Set scope
	var scope= $('textarea');

	// Validate textareas
	basekit.components.textareas.validate(scope);
	
Parameters Value
scope null textarea(s)

	// Set scope
	var scope= $('textarea');

	// Persist textareas
	basekit.components.textareas.persist(scope);
	
Parameters Value
scope null textarea(s)

	// Set scope
	var scope= $('textarea');

	// Lock textareas
	basekit.components.textareas.lock(scope);
	
Parameters Value
scope null textarea(s)

	// Set scope
	var scope= $('textarea');

	// Unlock textareas
	basekit.components.textareas.unlock(scope);
	
Parameters Value
scope null textarea(s)

	// Set scope
	var scope= $('textarea');

	// Disable textareas
	basekit.components.textareas.disable(scope);
	
Parameters Value
scope null textarea(s)

	// Set scope
	var scope= $('textarea');

	// Enable textareas
	basekit.components.textareas.enable(scope);
	
Parameters Value
scope null textarea(s)
Default
tiny
small
default
medium
large
huge


						
active
readonly
disabled
editable
mandatory
valid
invalid
transparent
transparent light
Editable
tiny
small
default
medium
large
huge
transparent
transparent light