Passed
Push — master ( c653a4...a7d880 )
by Jean-Christophe
02:17
created

Slider::onChange()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Ajax\ui\components;
3
4
use Ajax\JsUtils;
5
use Ajax\common\components\SimpleComponent;
6
7
/**
8
 * Composant JQuery UI Slider
9
 *
10
 * @author jc
11
 * @version 1.001
12
 */
13
class Slider extends SimpleComponent {
14
15
	public function __construct(JsUtils $js) {
16
		parent::__construct($js);
17
		$this->uiName = "slider";
18
		$this->setParam("value", 0);
19
	}
20
21
	public function onChange($jsCode) {
22
		return $this->addEvent("change", $jsCode);
23
	}
24
25
	public function onSlide($jsCode) {
26
		return $this->addEvent("slide", $jsCode);
27
	}
28
}
29