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
4
7
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}
JQuery PHP library.
Definition JsUtils.php:23
Ajax\semantic\components$Slider This class is part of phpMv-ui.
Definition Slider.php:16
__construct(JsUtils $js=NULL)
Definition Slider.php:18