Esempio n. 1
0
 public function compile(JsUtils $js = NULL, &$view = NULL)
 {
     if (isset($this->_activeStep) === true && \is_numeric($this->_activeStep)) {
         $this->defineActiveStep();
     }
     return parent::compile($js, $view);
 }
Esempio n. 2
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. 4
0
 public function addItem($item)
 {
     $item = parent::addItem($item);
     if (\is_subclass_of($item, HtmlFormField::class) === true) {
         $this->_fields[] = $item;
     }
     return $item;
 }
Esempio n. 5
0
 public function run(JsUtils $js)
 {
     if ($this->_hasCheckedList === true) {
         $jsCode = (include dirname(__FILE__) . '/../../components/jsTemplates/tplCheckedList.php');
         $jsCode = \str_replace("%identifier%", "#" . $this->identifier, $jsCode);
         $this->executeOnRun($jsCode);
     }
     return parent::run($js);
 }
 public function compile(JsUtils $js = NULL, $view = NULL)
 {
     if ($this->_equalWidth) {
         $count = $this->count();
         $this->addToProperty("class", Wide::getConstants()["W" . $count] . " fields");
     } else {
         $this->addToProperty("class", "fields");
     }
     return parent::compile($js, $view);
 }
Esempio n. 7
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. 8
0
 public function __construct($identifier, $icons = array(), $size = "")
 {
     parent::__construct($identifier, "i", "icons");
     $this->addItems($icons);
     $this->setSize($size);
 }
 public function __construct($identifier, $tagName = "div", $baseClass = "ui")
 {
     parent::__construct($identifier, "div", "ui accordion");
 }
Esempio n. 10
0
 public function __construct($identifier, $tagName, $baseClass)
 {
     parent::__construct($identifier, $tagName, $baseClass);
     $this->root = "";
     $this->attr = "data-ajax";
 }
Esempio n. 11
0
 /**
  *
  * {@inheritDoc}
  *
  * @see \Ajax\common\html\HtmlCollection::insertItem()
  */
 public function insertItem($item, $position = 0)
 {
     $item = parent::insertItem($this->getItemToInsert($item), $position);
     return $this->afterInsert($item);
 }
Esempio n. 12
0
 public function __construct($identifier, $items = array())
 {
     parent::__construct($identifier, "div", "ui segments");
     $this->addItems($items);
 }
Esempio n. 13
0
 public function __construct($identifier, $cards = array())
 {
     parent::__construct($identifier, "div", "ui cards");
     $this->addItems($cards);
 }
Esempio n. 14
0
 public function compile(JsUtils $js = NULL, &$view = NULL)
 {
     if ($this->_implicite === true) {
         $this->_template = "%wrapContentBefore%%content%%wrapContentAfter%";
     }
     return parent::compile($js, $view);
 }
Esempio n. 15
0
 public function __construct($identifier)
 {
     parent::__construct($identifier, "tr", "");
     $this->_states = [State::ACTIVE, State::POSITIVE, State::NEGATIVE, State::WARNING, State::ERROR, State::DISABLED];
 }