TextBox

Minimum setting #

<?php
\koolreport\inputs\TextBox::create([
    "name"=>"customer",
]);
?>

Other properties #

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

Client events #

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

Full example #

<?php
\koolreport\inputs\TextBox::create([
    "name"=>"customer",
    "value"=>"John Lennon",
    "attributes"=>array(
        "class"=>"form-control"
    ),
    "clientEvents"=>array(
        "focus"=>"function(){
            console.log('focus');
        }",
    )
]);
?>