| @@ 8-22 (lines=15) @@ | ||
| 5 | use Ajax\common\components\SimpleExtComponent; |
|
| 6 | use Ajax\JsUtils; |
|
| 7 | ||
| 8 | class Dimmer extends SimpleExtComponent { |
|
| 9 | ||
| 10 | public function __construct(JsUtils $js) { |
|
| 11 | parent::__construct($js); |
|
| 12 | $this->uiName="dimmer"; |
|
| 13 | } |
|
| 14 | ||
| 15 | public function setOn($value=false) { |
|
| 16 | $this->params["on"]=$value; |
|
| 17 | } |
|
| 18 | ||
| 19 | public function setOpacity($value) { |
|
| 20 | $this->params["opacity"]=$value; |
|
| 21 | } |
|
| 22 | } |
|
| @@ 8-24 (lines=17) @@ | ||
| 5 | use Ajax\common\components\SimpleExtComponent; |
|
| 6 | use Ajax\JsUtils; |
|
| 7 | ||
| 8 | class Progress extends SimpleExtComponent { |
|
| 9 | ||
| 10 | public function __construct(JsUtils $js) { |
|
| 11 | parent::__construct($js); |
|
| 12 | $this->uiName="progress"; |
|
| 13 | } |
|
| 14 | ||
| 15 | public function setOnChange($jsCode) { |
|
| 16 | return $this->params["onChange"]=$jsCode; |
|
| 17 | } |
|
| 18 | ||
| 19 | public function setText($values) { |
|
| 20 | return $this->params["text"]=$values; |
|
| 21 | } |
|
| 22 | ||
| 23 | // TODO other events implementation |
|
| 24 | } |
|