phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Slider.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\components
;
4
5
use
Ajax\JsUtils
;
6
use
Ajax\service\JString
;
7
16
class
Slider
extends
SimpleSemExtComponent
{
17
18
public
function
__construct
(
JsUtils
$js
=NULL) {
19
parent::__construct(
$js
);
20
$this->uiName=
'slider'
;
21
}
22
23
public
function
close
(){
24
return
$this->
addBehavior
(
'close'
);
25
}
26
27
public
function
setInterpretLabel
($labels){
28
$var=
"window.document._slider_labels['"
.JString::cleanIdentifier($this->attachTo).
"']"
;
29
$this->
addCode
(
'window.document._slider_labels=window.document._slider_labels||[];'
.$var.
'='
.\json_encode($labels).
';'
);
30
$this->params[
'interpretLabel'
]=
'%function(value) {return '
.$var.
'[value];}%'
;
31
}
32
33
public
function
setMin
($min){
34
$this->params[
'min'
]=$min;
35
}
36
37
public
function
setMax
($max){
38
$this->params[
'max'
]=$max;
39
}
40
41
public
function
setStart
($start){
42
$this->params[
'start'
]=$start;
43
}
44
45
public
function
setEnd
($end){
46
$this->params[
'end'
]=$end;
47
}
48
49
public
function
setStep
($step){
50
$this->params[
'step'
]=$step;
51
}
52
53
public
function
setSmooth
($smooth) {
54
$this->params[
'smooth'
]=$smooth;
55
}
56
57
public
function
setOnChange
($jsCode) {
58
$this->
addComponentEvent
(
'onChange'
, $jsCode);
59
}
60
61
public
function
setOnMove
($jsCode) {
62
$this->
addComponentEvent
(
'onMove'
, $jsCode);
63
}
64
65
}
Ajax\JsUtils
JQuery PHP library.
Definition
JsUtils.php:23
Ajax\common\components\BaseComponent\$js
$js
Definition
BaseComponent.php:20
Ajax\common\components\SimpleExtComponent\addCode
addCode($jsCode)
Definition
SimpleExtComponent.php:30
Ajax\semantic\components\SimpleSemExtComponent
Definition
SimpleSemExtComponent.php:8
Ajax\semantic\components\SimpleSemExtComponent\addComponentEvent
addComponentEvent($event, $jsCode)
Definition
SimpleSemExtComponent.php:46
Ajax\semantic\components\SimpleSemExtComponent\addBehavior
addBehavior($name)
Definition
SimpleSemExtComponent.php:15
Ajax\semantic\components\Slider
Ajax\semantic\components$Slider This class is part of phpMv-ui.
Definition
Slider.php:16
Ajax\semantic\components\Slider\setStart
setStart($start)
Definition
Slider.php:41
Ajax\semantic\components\Slider\setMax
setMax($max)
Definition
Slider.php:37
Ajax\semantic\components\Slider\setInterpretLabel
setInterpretLabel($labels)
Definition
Slider.php:27
Ajax\semantic\components\Slider\setSmooth
setSmooth($smooth)
Definition
Slider.php:53
Ajax\semantic\components\Slider\setStep
setStep($step)
Definition
Slider.php:49
Ajax\semantic\components\Slider\setOnMove
setOnMove($jsCode)
Definition
Slider.php:61
Ajax\semantic\components\Slider\setMin
setMin($min)
Definition
Slider.php:33
Ajax\semantic\components\Slider\setOnChange
setOnChange($jsCode)
Definition
Slider.php:57
Ajax\semantic\components\Slider\setEnd
setEnd($end)
Definition
Slider.php:45
Ajax\semantic\components\Slider\close
close()
Definition
Slider.php:23
Ajax\semantic\components\Slider\__construct
__construct(JsUtils $js=NULL)
Definition
Slider.php:18
Ajax\service\JString
Definition
JString.php:4
Ajax\semantic\components
Definition
Accordion.php:3
Ajax
semantic
components
Slider.php
Generated on Sun Dec 10 2023 16:16:00 for
phpMv-UI
by
doxygen
1.9.8