phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Dropdown.php
Go to the documentation of this file.
1<?php
3
5
7
8 public function __construct(JsUtils $js) {
9 parent::__construct($js);
10 $this->uiName = "dropdown";
11 }
12
20 public function setAction($action) {
21 return $this->setParamCtrl("action", $action, array(
22 "select",
23 "auto",
24 "activate",
25 "combo",
26 "nothing",
27 "hide"
28 ));
29 }
30
38 public function setOn($event) {
39 return $this->setParam("on", $event);
40 }
41
42 public function setFullTextSearch($value) {
43 return $this->setParam("fullTextSearch", $value);
44 }
45
46 public function setShowOnFocus($value) {
47 return $this->setParam("showOnFocus", $value);
48 }
49
50 public function setAllowAdditions($value) {
51 return $this->setParam("allowAdditions", $value);
52 }
53
54 public function setClearable($value) {
55 return $this->setParam("clearable", $value);
56 }
57
58 public function setOnAdd($value) {
59 $this->params["onAdd"] = "%function(addedValue, addedText, \$addedChoice){" . $value . "}%";
60 }
61
62 public function setOnRemove($value) {
63 $this->params["onRemove"] = "%function(removedValue, removedText, \$removedChoice){" . $value . "}%";
64 }
65}
JQuery PHP library.
Definition JsUtils.php:23
setAction($action)
Sets a default action to occur.
Definition Dropdown.php:20
setOn($event)
Define the event which trigger dropdown.
Definition Dropdown.php:38