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());
        }",
    )
));
?>

Get started with KoolReport

KoolReport will help you to construct good php data report by gathering your data from multiple sources, transforming them into valuable insights, and finally visualizing them in stunning charts and graphs.