phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Carousel.php
Go to the documentation of this file.
1<?php
2
4
7
14
15 public function __construct(JsUtils $js) {
16 parent::__construct($js);
17 $this->uiName="carousel";
18 $this->setInterval(2000);
19 }
20
21 public function attach($identifier) {
22 parent::attach($identifier);
23 }
24
31 public function setInterval($value=5000) {
32 return $this->setParam("interval", $value);
33 }
34
40 public function setPause($event="hover") {
41 return $this->setParam("pause", $event);
42 }
43
49 public function setWrap($value=true) {
50 return $this->setParam("wrap", $value);
51 }
52
58 public function setKeyboard($value=true) {
59 return $this->setParam("keyboard", $value);
60 }
61
67 public function onSlide($jsCode) {
68 return $this->addEvent("slide.bs.carousel", $jsCode);
69 }
70
76 public function onSlid($jsCode) {
77 return $this->addEvent("slid.bs.carousel", $jsCode);
78 }
79}
JQuery PHP library.
Definition JsUtils.php:23