示例#1
0
 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";
 }
示例#2
0
 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);
 }
示例#3
0
 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);
 }
示例#4
0
 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];
 }
示例#5
0
 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];
 }
示例#6
0
 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;
 }
示例#7
0
 public function __construct($identifier, $context = NULL, $content = NULL)
 {
     parent::__construct($identifier, "div", "ui sticky", $content);
     if (isset($content)) {
         $this->setContext($context);
     }
 }
示例#8
0
 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");
 }
示例#9
0
 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);
     }
 }
示例#10
0
 public function __construct($identifier, $width = NULL)
 {
     parent::__construct($identifier, "div");
     $this->setClass("column");
     if (isset($width)) {
         $this->setWidth($width);
     }
 }
示例#11
0
 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);
 }
示例#12
0
 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);
     }
 }
示例#13
0
 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);
     }
 }
示例#14
0
 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);
 }
示例#15
0
 /**
  * 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);
     }
 }
示例#16
0
 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);
     }
 }
示例#17
0
 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;
 }
示例#18
0
 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);
 }
示例#20
0
 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;
 }
示例#22
0
 /**
  * @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);
 }
示例#23
0
 public function __construct($identifier, $content = NULL)
 {
     parent::__construct($identifier, "div", "ui loader", $content);
 }
示例#24
0
 public function __construct($identifier, $content = "")
 {
     parent::__construct($identifier, "div", "ui container");
     $this->content = $content;
 }
示例#25
0
 public function __construct($identifier, $content = "", $tagName = "div")
 {
     parent::__construct($identifier, $tagName, "ui divider");
     $this->content = $content;
 }
示例#26
0
 /**
  *
  * @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];
 }
示例#27
0
 public function __construct($identifier, $icon)
 {
     parent::__construct($identifier, "i", "icon", NULL);
     $this->setIcon($icon);
 }
示例#28
0
 public function __construct($identifier, $content = array())
 {
     parent::__construct($identifier, "div", "content", $content);
 }
示例#29
0
 public function __construct($identifier, $baseClass, $content = NULL)
 {
     parent::__construct($identifier, "div", $baseClass);
     $this->content = array();
     $this->initContent($content);
 }
示例#30
0
 public function __construct($identifier)
 {
     parent::__construct($identifier, "div", "ui card", array());
 }