public function __construct($identifier, $placeholder = NULL, $icon = NULL) { parent::__construct("search-" . $identifier, "div", "ui search", array()); $this->createField($placeholder, $icon); $this->createResult(); $this->_params["type"] = "standard"; }
public function __construct($identifier, $content = "") { parent::__construct($identifier, "div"); $this->_template = "<%tagName% id='%identifier%' %properties%>%close%%icon%%wrapContentBefore%%content%%wrapContentAfter%</%tagName%>"; $this->setClass("ui message"); $this->setContent($content); }
public function __construct($identifier, $visibleContent, $hiddenContent, $type = RevealType::FADE, $attributeType = NULL) { parent::__construct($identifier, "div", "ui reveal"); $this->setElement(0, $visibleContent); $this->setElement(1, $hiddenContent); $this->setType($type, $attributeType); }
public function __construct($identifier, $type = "text", $value = "", $placeholder = "") { parent::__construct("div-" . $identifier, "div", "ui input"); $this->content = ["field" => new \Ajax\common\html\html5\HtmlInput($identifier, $type, $value, $placeholder)]; $this->_states = [State::DISABLED, State::FOCUS, State::ERROR]; $this->_variations = [Variation::TRANSPARENT]; }
public function __construct($identifier, $rowCount, $colCount) { parent::__construct($identifier, "table", "ui table"); $this->content = array(); $this->setRowCount($rowCount, $colCount); $this->_variations = [Variation::CELLED, Variation::PADDED, Variation::COMPACT]; }
public function __construct($identifier, $content = "") { parent::__construct($identifier, "div", "ui segment"); $this->_variations = \array_merge($this->_variations, [Variation::PADDED, Variation::COMPACT]); $this->_states = \array_merge($this->_states, [State::LOADING]); $this->content = $content; }
public function __construct($identifier, $context = NULL, $content = NULL) { parent::__construct($identifier, "div", "ui sticky", $content); if (isset($content)) { $this->setContext($context); } }
public function __construct(BaseHtml $container, $identifier, $content = "") { parent::__construct($identifier, "div"); $this->_container = $container; $this->setClass("ui popup"); $this->content = $content; $this->_params = array("on" => "hover"); }
public function __construct($identifier, $caption = "", $icon = NULL, $tagName = "div") { parent::__construct($identifier, $tagName, "ui label"); $this->content = $caption; if (isset($icon) === true) { $this->addIcon($icon); } }
public function __construct($identifier, $width = NULL) { parent::__construct($identifier, "div"); $this->setClass("column"); if (isset($width)) { $this->setWidth($width); } }
public function __construct($identifier, $elements = array(), $asIcons = false) { parent::__construct($identifier, "div", "ui buttons"); $this->content = array(); if ($asIcons === true) { $this->asIcons(); } $this->addElements($elements, $asIcons); }
public function __construct($identifier, $src = "", $alt = "", $size = NULL) { $image = new HtmlImg("img-", $src, $alt); $image->setClass(""); parent::__construct($identifier, "div", "ui image", $image); if (isset($size)) { $this->setSize($size); } }
public function __construct($identifier, $name = NULL, $label = NULL, $value = NULL, $inputType = "checkbox", $type = "checkbox") { parent::__construct("ck-" . $identifier, "div", "ui " . $type); $field = new \Ajax\common\html\html5\HtmlInput($identifier, $inputType, $value); $field->setProperty("name", $name); $this->setField($field); if (isset($label)) { $this->setLabel($label); } }
public function __construct($identifier, $field, $label = NULL) { parent::__construct($identifier, "div", "field"); $this->content = array(); $this->_states = [State::ERROR, State::DISABLED]; if (isset($label)) { $this->setLabel($label); } $this->setField($field); }
/** * Constructs an HTML Semantic button * @param string $identifier HTML id * @param string $value value of the Button * @param string $cssStyle btn-default, btn-primary... * @param string $onClick JS Code for click event */ public function __construct($identifier, $value = "", $cssStyle = null, $onClick = null) { parent::__construct($identifier, "button", "ui button"); $this->content = $value; if (isset($cssStyle)) { $this->setStyle($cssStyle); } if (isset($onClick)) { $this->onClick($onClick); } }
public function __construct($identifier, $content = "", $value = NULL, $image = NULL) { parent::__construct($identifier, "a"); $this->setClass("item"); $this->setContent($content); if ($value !== NULL) { $this->setData($value); } if ($image !== NULL) { $this->asMiniAvatar($image); } }
public function __construct($identifier, $niveau = 1, $content = NULL, $type = "page") { parent::__construct($identifier, "div", "ui header"); $this->_template = "<%tagName% %properties%>%image%%content%</%tagName%>"; if (isset($type)) { if ($type == "page") { $this->asPageHeader($niveau); } else { $this->asContentHeader($niveau); } } $this->content = $content; }
public function __construct($identifier, $value = NULL, $label = NULL, $attributes = array()) { parent::__construct($identifier, "div", "ui progress"); if (isset($value) === true) { $this->setProperty("data-percent", $value); } $this->createBar(); if (isset($label) === true) { $this->setLabel($label); } $this->_states = [State::SUCCESS, State::WARNING, State::ERROR, State::ACTIVE, State::DISABLED]; $this->addToProperty("class", $attributes); }
public function __construct($identifier, $value = "", $items = array()) { parent::__construct($identifier, "div"); $this->_template = (include dirname(__FILE__) . '/../templates/tplDropdown.php'); $this->setProperty("class", "ui dropdown"); $content = new HtmlSemDoubleElement("text-" . $this->identifier, "div"); $content->setClass("text"); $content->setContent($value); $content->wrap("", new HtmlIcon("", "dropdown")); $this->content = array($content); $this->tagName = "div"; $this->addItems($items); }
public function __construct($identifier, $header = "", $content = "", $actions = array()) { parent::__construct($identifier, "div", "ui modal"); if (isset($header)) { $this->setHeader($header); } if (isset($content)) { $this->setContent($content); } if (isset($actions)) { $this->setActions($actions); } }
public function __construct($identifier, $title, $content = NULL) { parent::__construct($identifier, "div", "content", $content); $this->_template = "%titleElement%" . $this->_template; $this->_title = $title; }
/** * @param string $identifier * @param int $value * @param int $max * @param string $icon star or heart */ public function __construct($identifier, $value, $max = 5, $icon = "") { parent::__construct($identifier, "div", "ui {$icon} rating"); $this->setValue($value); $this->setMax($max); }
public function __construct($identifier, $content = NULL) { parent::__construct($identifier, "div", "ui loader", $content); }
public function __construct($identifier, $content = "") { parent::__construct($identifier, "div", "ui container"); $this->content = $content; }
public function __construct($identifier, $content = "", $tagName = "div") { parent::__construct($identifier, $tagName, "ui divider"); $this->content = $content; }
/** * * @param string $identifier * @param mixed $content * @param string $tagName */ public function __construct($identifier, $content = NULL, $tagName = "td") { parent::__construct($identifier, $tagName, "", $content); $this->_variations = [Variation::COLLAPSING]; $this->_states = [State::ACTIVE, State::POSITIVE, State::NEGATIVE, State::WARNING, State::ERROR, State::DISABLED]; }
public function __construct($identifier, $icon) { parent::__construct($identifier, "i", "icon", NULL); $this->setIcon($icon); }
public function __construct($identifier, $content = array()) { parent::__construct($identifier, "div", "content", $content); }
public function __construct($identifier, $baseClass, $content = NULL) { parent::__construct($identifier, "div", $baseClass); $this->content = array(); $this->initContent($content); }
public function __construct($identifier) { parent::__construct($identifier, "div", "ui card", array()); }