-
render#
Returns:
HTML/Javascript code
Example:
<?php
Zino_Loader::register("Checkbox", "checkbox")->render();
// or
$checkbox = Zino_Loader::register("Checkbox", "checkbox")
$checkbox->render();
?>
-
setData#
Returns:
Zino_Checkbox instance
Example:
<?php
$checkbox = Zino_Loader::register("Checkbox", "checkbox");
$checkbox->setData(array(
array("label" => "New York"),
array("label" => "Paris"),
array("label" => "Barcelona", "checked" => true),
array("label" => "Sao Paolo"),
array("label" => "London"),
array("label" => "Sofia")
));
?>
-
on#
Fires when checkbox button lost focus.
Returns:
Zino_Checkbox instance
Example:
<?php
$checkbox = Zino_Loader::register("Checkbox", "checkbox");
$checkbox->on("blur", "function (event, ui) {}");
?>
-
on#
Fires when checkbox is created.
Returns:
Zino_Checkbox instance
Example:
<?php
$checkbox = Zino_Loader::register("Checkbox", "checkbox");
$checkbox->on("create", "function (event, ui) {}");
?>
-
on#
Fires when checkbox button gain focus.
Returns:
Zino_Checkbox instance
Example:
<?php
$checkbox = Zino_Loader::register("Checkbox", "checkbox");
$checkbox->on("focus", "function (event, ui) {}");
?>
-
on#
Fires when checkbox button toggle it state.
Returns:
Zino_Checkbox instance
Example:
<?php
$checkbox = Zino_Loader::register("Checkbox", "checkbox");
$checkbox->on("toggle", "function (event, ui) {}");
?>
-
setId#
Parameters:
$value
String
Returns:
Zino_Checkbox instance
Example:
<?php
$checkbox = Zino_Loader::register("Checkbox", "checkbox");
$checkbox->setId("new_id");
?>
-
setDomReady#
Parameters:
$value
Boolean
Returns:
Zino_Checkbox instance
Example:
<?php
$checkbox = Zino_Loader::register("Checkbox", "checkbox");
$checkbox->setDomReady(false);
?>
-
setScript#
Parameters:
$value
Boolean
Returns:
Zino_Checkbox instance
Example:
<?php
$checkbox = Zino_Loader::register("Checkbox", "checkbox");
$checkbox->setScript(false);
?>