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
2
namespace
Ajax\semantic\components
;
3
4
use
Ajax\JsUtils
;
5
6
class
Dropdown
extends
SimpleSemExtComponent
{
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
}
Ajax\JsUtils
JQuery PHP library.
Definition
JsUtils.php:23
Ajax\common\components\BaseComponent\$js
$js
Definition
BaseComponent.php:20
Ajax\common\components\BaseComponent\setParam
setParam($key, $value)
Definition
BaseComponent.php:35
Ajax\common\components\SimpleComponent\setParamCtrl
setParamCtrl($key, $value, $typeCtrl)
Definition
SimpleComponent.php:83
Ajax\semantic\components\Dropdown
Definition
Dropdown.php:6
Ajax\semantic\components\Dropdown\setAction
setAction($action)
Sets a default action to occur.
Definition
Dropdown.php:20
Ajax\semantic\components\Dropdown\setAllowAdditions
setAllowAdditions($value)
Definition
Dropdown.php:50
Ajax\semantic\components\Dropdown\setOn
setOn($event)
Define the event which trigger dropdown.
Definition
Dropdown.php:38
Ajax\semantic\components\Dropdown\setFullTextSearch
setFullTextSearch($value)
Definition
Dropdown.php:42
Ajax\semantic\components\Dropdown\setOnAdd
setOnAdd($value)
Definition
Dropdown.php:58
Ajax\semantic\components\Dropdown\setShowOnFocus
setShowOnFocus($value)
Definition
Dropdown.php:46
Ajax\semantic\components\Dropdown\setOnRemove
setOnRemove($value)
Definition
Dropdown.php:62
Ajax\semantic\components\Dropdown\setClearable
setClearable($value)
Definition
Dropdown.php:54
Ajax\semantic\components\Dropdown\__construct
__construct(JsUtils $js)
Definition
Dropdown.php:8
Ajax\semantic\components\SimpleSemExtComponent
Definition
SimpleSemExtComponent.php:8
Ajax\semantic\components
Definition
Accordion.php:3
Ajax
semantic
components
Dropdown.php
Generated on Sun Dec 10 2023 16:15:50 for
phpMv-UI
by
doxygen
1.9.8