MultiSelect

MultiSelect is actually Select but have ability to select multiple options at once. You can also set the size which is how many options to be visible.

<?php
\koolreport\inputs\MultiSelect::create(array(
    "name"=>"customer",
    "dataStore"=>$this->dataStore("customer"),
    "dataBind"=>array("text"=>"customerName","value"=>"customerId"),
    "attributes"=>array(
        "size"=>10,
    )
));
?>

The value returned from MultiSelect is an array() containing list of selected values.

Client Events #

TextBox supports all client events such as focus, blur, change, mouseover, mouseout.

<?php
\koolreport\inputs\MultiSelect::create(array(
    ...
    "clientEvents"=>array(
        "change"=>"function(){
            console.log($(this).val());
        }",
    )
));
?>