phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Tooltip.php
Go to the documentation of this file.
1<?php
2
4
8
15
16 public function __construct(JsUtils $js) {
17 parent::__construct($js);
18 $this->uiName="tooltip";
19 }
20
21 public function attach($identifier) {
22 parent::attach($identifier);
23 $this->js->attr($identifier, "data-toggle", $this->uiName, true);
24 }
25
31 public function setAnimation($value) {
32 return $this->setParamCtrl("animation", $value, "is_bool");
33 }
34
42 public function setDelai($value) {
43 return $this->setParam("delai", $value);
44 }
45
53 public function setHtml($value) {
54 return $this->setParamCtrl("html", $value, "is_bool");
55 }
56
67 public function setPlacement($value) {
68 return $this->setParamCtrl("placement", $value, CssRef::position());
69 }
70
77 public function setSelector($value) {
78 return $this->setParam("selector", $value);
79 }
80
89 public function setTemplate($value) {
90 return $this->setParam("template", $value);
91 }
92
99 public function setTitle($value) {
100 return $this->setParam("title", $value);
101 }
102
109 public function setTrigger($value) {
110 return $this->setParam("trigger", $value);
111 }
112
119 public function setViewport($value) {
120 return $this->setParam("viewport", $value);
121 }
122
128 public function onShow($jsCode) {
129 return $this->addEvent("show.bs.".$this->uiName, $jsCode);
130 }
131
137 public function onShown($jsCode) {
138 return $this->addEvent("shown.bs.".$this->uiName, $jsCode);
139 }
140
146 public function onHide($jsCode) {
147 return $this->addEvent("hide.bs.".$this->uiName, $jsCode);
148 }
149
155 public function onHidden($jsCode) {
156 return $this->addEvent("hidden.bs.".$this->uiName, $jsCode);
157 }
158}
JQuery PHP library.
Definition JsUtils.php:23
Composant Twitter Bootstrap Tooltip.
Definition Tooltip.php:14
setHtml($value)
Insert HTML into the tooltip.
Definition Tooltip.php:53
setTitle($value)
Default title value if title attribute isn't present.
Definition Tooltip.php:99
setSelector($value)
If a selector is provided, tooltip objects will be delegated to the specified targets.
Definition Tooltip.php:77
setTemplate($value)
Base HTML to use when creating the tooltip.
Definition Tooltip.php:89
onShow($jsCode)
This event fires immediately when the show instance method is called.
Definition Tooltip.php:128
setViewport($value)
Keeps the tooltip within the bounds of this element.
Definition Tooltip.php:119
setDelai($value)
Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type If a number is supp...
Definition Tooltip.php:42
setTrigger($value)
How tooltip is triggered - click | hover | focus | manual.
Definition Tooltip.php:109
setAnimation($value)
Apply a CSS fade transition to the tooltip if set to true.
Definition Tooltip.php:31
onHide($jsCode)
This event is fired immediately when the hide instance method has been called.
Definition Tooltip.php:146
onHidden($jsCode)
This event is fired when the tooltip has finished being hidden from the user (will wait for CSS trans...
Definition Tooltip.php:155
setPlacement($value)
How to position the tooltip - top | bottom | left | right | auto.
Definition Tooltip.php:67
onShown($jsCode)
This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions...
Definition Tooltip.php:137
Default HTML values for Twitter Bootstrap HTML components.
Definition CssRef.php:12