37 $this->_baseClass = $baseClass;
51 if (isset($this->_popup))
52 $this->_popup->setAttributes($variation, $popupEvent);
64 public function addPopup($title =
"",
$content =
"", $variation = NULL, $params = array()) {
77 public function addPopupHtml($html =
"", $variation = NULL, $params = array()) {
79 $this->_popup->setHtml($html);
80 $this->_popup->setAttributes($variation, $params);
93 $dimmer->setParams($params);
94 $dimmer->setContainer($this);
107 public function addLabel($label, $before =
false, $icon = NULL) {
109 if (\is_object($label) ===
false) {
110 $labelO =
new HtmlLabel(
"label-" . $this->identifier, $label);
112 $labelO->addIcon($icon);
114 $labelO->addToPropertyCtrl(
"class",
"label", array(
132 $label = $this->
addLabel($label,
true, $icon);
133 $label->setAttached($side, $direction);
142 public function asLink($href = NULL, $target = NULL) {
160 return '$("#.' . $this->identifier .
').dimmer("' . $status .
'");';
169 if (isset($this->_popup)) {
170 $this->_popup->compile($js);
172 return parent::compile($js, $view);
181 $this->_bsComponent = $js->
semantic()->generic(
"#" . $this->identifier);
184 if (isset($this->_popup)) {
185 $this->_popup->run($js);
187 if (isset($this->_toast)) {
188 $this->_toast->setJs($js);
199 public function addList($items, $ordered =
false) {
200 $list =
new HtmlList(
"list-" . $this->identifier, $items);
201 $list->setOrdered($ordered);
202 $list->setClass(
"ui list");
213 $this->_toast =
new Toast();
214 $this->_toast->attach(
'#' . $this->_identifier);
216 if (isset($params)) {
217 $this->_toast->setParams($params);
219 $this->_toast->setParam(
'onShow',
'$(".toast-box *").show();');
229 $this->_sidebar =
new Sidebar();
semantic(Semantic $semantic=NULL)
getter or setter of the Semantic-UI variable
BaseHtml for HTML components.
addContent($content, $before=false)
addEventsOnRun(JsUtils $js=NULL)
Ajax\semantic\components$Toast This class is part of phpMv-ui.
Base class for Semantic double elements.
run(JsUtils $js)
{SimpleExtComponent\Ajax\common\html\BaseHtmlrun()\Ajax\common\html\BaseHtmlrun()}
addPopup($title="", $content="", $variation=NULL, $params=array())
Adds a popup to the element.
jsShowDimmer($show=true)
Returns the script displaying the dimmer.
addDimmer($params=array(), $content=NULL)
Adds a Dimmer to the element.
asLink($href=NULL, $target=NULL)
Transforms the element into a link.
compile(JsUtils $js=NULL, &$view=NULL)
{}
addList($items, $ordered=false)
setPopupAttributes($variation=NULL, $popupEvent=NULL)
Defines the popup attributes.
addLabel($label, $before=false, $icon=NULL)
Adds a label to the element.
__construct($identifier, $tagName="p", $baseClass="ui", $content=NULL)
addPopupHtml($html="", $variation=NULL, $params=array())
Adds an html popup to the element.
attachLabel($label, $side=Side::TOP, $direction=Direction::NONE, $icon=NULL)
Adds an attached label to the element.
addToProperty($name, $value, $separator=" ")
setProperty($name, $value)
Semantic Label component.