Esempio n. 1
0
 public function __construct($identifier, $labels = array(), $attributes = array())
 {
     parent::__construct($identifier, "div", "ui labels");
     $this->_states = \array_merge(Size::getConstants(), Color::getConstants(), ["tag", "circular"]);
     $this->addItems($labels);
     $this->setStates($attributes);
 }
 /**
  *
  * @param string $identifier
  * @param string $tagName
  * @param int $rowCount
  * @param int $colCount
  */
 public function __construct($identifier, $tagName = "tbody", $rowCount = NULL, $colCount = NULL)
 {
     parent::__construct($identifier, $tagName, "");
     if (isset($rowCount) && isset($colCount)) {
         $this->setRowCount($rowCount, $colCount);
     }
 }
Esempio n. 3
0
 public function __construct($identifier, $elements = array())
 {
     parent::__construct($identifier, "form", "ui form");
     $this->_states = [State::ERROR, State::SUCCESS, State::WARNING, State::DISABLED];
     $this->setProperty("name", $this->identifier);
     $this->_fields = array();
     $this->addItems($elements);
 }
Esempio n. 4
0
 public function __construct($identifier, $numRows = 1, $numCols = NULL, $createCols = true, $implicitRows = false)
 {
     parent::__construct($identifier, "div", "ui grid");
     $this->_implicitRows = $implicitRows;
     $this->_createCols = $createCols;
     if (isset($numCols)) {
         // if($this->_createCols){
         $this->_colSizing = false;
         // }
         $this->setWide($numCols);
     }
     $this->setRowsCount($numRows, $numCols);
 }
Esempio n. 5
0
 public function __construct($identifier, $numCols = NULL, $colSizing = false, $implicite = false)
 {
     parent::__construct($identifier, "div", "row");
     $this->_implicite = $implicite;
     $width = null;
     if (isset($numCols)) {
         $numCols = min(16, $numCols);
         $numCols = max(1, $numCols);
         if ($colSizing) {
             $width = (int) (16 / $numCols);
         } else {
             $this->_colSize = 16 / $numCols;
         }
         for ($i = 0; $i < $numCols; $i++) {
             $this->addItem($width);
         }
     }
 }
Esempio n. 6
0
 public function __construct($identifier, $icons = array(), $size = "")
 {
     parent::__construct($identifier, "i", "icons");
     $this->addItems($icons);
     $this->setSize($size);
 }
 public function __construct($identifier, $fields = array(), $equalWidth = true)
 {
     parent::__construct($identifier, "div");
     $this->_equalWidth = $equalWidth;
     $this->addItems($fields);
 }
 public function __construct($identifier, $tagName = "div", $baseClass = "ui")
 {
     parent::__construct($identifier, "div", "ui accordion");
 }
 public function __construct($identifier, $tagName, $baseClass)
 {
     parent::__construct($identifier, $tagName, $baseClass);
     $this->root = "";
     $this->attr = "data-ajax";
 }
Esempio n. 10
0
 public function __construct($identifier, $items = array())
 {
     parent::__construct($identifier, "div", "ui menu");
     $this->addItems($items);
 }
Esempio n. 11
0
 public function __construct($identifier, $steps = array())
 {
     parent::__construct($identifier, "div", "ui steps");
     $this->addItems($steps);
 }
Esempio n. 12
0
 public function __construct($identifier, $cards = array())
 {
     parent::__construct($identifier, "div", "ui cards");
     $this->addItems($cards);
 }
Esempio n. 13
0
 public function __construct($identifier)
 {
     parent::__construct($identifier, "tr", "");
     $this->_states = [State::ACTIVE, State::POSITIVE, State::NEGATIVE, State::WARNING, State::ERROR, State::DISABLED];
 }
Esempio n. 14
0
 public function __construct($identifier, $items = array())
 {
     parent::__construct($identifier, "div", "ui list");
     $this->addItems($items);
     $this->_hasCheckedList = false;
 }