TextArea

Minimum setting #

<?php
TextArea::create({
    "name"=>"desciption",
});
?>

Other properties #

Nametypedefaultdescription
namestring*Required Name of the controls
valuestringValue of the textarea, this value will be override by the binded params
attributesarraynullAn associate array contains settings for inputs, see example below

Client events #

TextArea supports all client events such as focus, blur, keypress, keyup, keydown, mouseover, mouseout.

Example #

<?php
TextArea::create({
    "name"=>"customer",
    "value"=>"John Lennon",
    "attributes"=>array(
        "rows"=>5,
        "class"=>"form-control"
    ),
    "clientEvents"=>array(
        "focus"=>"function(){
            console.log('focus');
        }",
    )
});
?>