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
2namespace Ajax\ui\components;
3
7
14class Tooltip extends SimpleComponent {
15
16 public function __construct(JsUtils $js) {
17 parent::__construct($js);
18 $this->uiName = "tooltip";
19 }
20
29 public function setContent($value) {
30 return $this->setParam("content", $value);
31 }
32
40 public function setDisabled($value) {
41 return $this->setParamCtrl("disabled", $value, "is_bool");
42 }
43
51 public function setHide($value) {
52 return $this->setParam("hide", $value);
53 }
54
64 public function setItems($value) {
65 return $this->setParam("items", $value);
66 }
67
77 public function setPosition(Position $position) {
78 return $this->setParam("position", $position->getParams());
79 }
80
88 public function setShow($value) {
89 return $this->setParam("show", $value);
90 }
91
100 public function setTooltipClass($value) {
101 return $this->setParam("tooltipclass", $value);
102 }
103
111 public function setTrack($value) {
112 return $this->setParamCtrl("track", $value, "is_bool");
113 }
114
121 public function onClose($jsCode) {
122 return $this->addEvent("close", $jsCode);
123 }
124
131 public function onOpen($jsCode) {
132 return $this->addEvent("open", $jsCode);
133 }
134}
JQuery PHP library.
Definition JsUtils.php:23
Base component for JQuery UI visuals components.
Composant JQuery UI Menu.
Definition Tooltip.php:14
setTooltipClass($value)
A class to add to the widget, can be used to display various tooltip types, like warnings or errors.
Definition Tooltip.php:100
setItems($value)
A selector indicating which items should show tooltips.
Definition Tooltip.php:64
onClose($jsCode)
Triggered when a tooltip is closed, triggered on focusout or mouseleave.
Definition Tooltip.php:121
onOpen($jsCode)
Triggered when a tooltip is shown, triggered on focusin or mouseover.
Definition Tooltip.php:131
setDisabled($value)
Disables the tooltip if set to true.
Definition Tooltip.php:40
setHide($value)
If and how to animate the hiding of the tooltip.
Definition Tooltip.php:51
setPosition(Position $position)
Identifies the position of the tooltip in relation to the associated target element.
Definition Tooltip.php:77
setShow($value)
If and how to animate the showing of the tooltip.
Definition Tooltip.php:88
setContent($value)
The content of the tooltip.
Definition Tooltip.php:29
setTrack($value)
Whether the tooltip should track (follow) the mouse.
Definition Tooltip.php:111
__construct(JsUtils $js)
Definition Tooltip.php:16
Composant JQuery UI Position property.
Definition Position.php:12