Ejemplo n.º 1
0
 public function __construct($identifier, $type = "text", $value = NULL, $placeholder = NULL)
 {
     parent::__construct($identifier, "input");
     $this->setProperty("name", $identifier);
     $this->setValue($value);
     $this->setPlaceholder($placeholder);
     $this->setProperty("type", $type);
 }
Ejemplo n.º 2
0
 public function __construct($identifier)
 {
     parent::__construct($identifier, "input");
     $this->setProperty("name", $identifier);
     $this->setProperty("class", "form-control");
     $this->setProperty("role", "input");
     $this->setProperty("value", "");
     $this->setProperty("type", "text");
 }
Ejemplo n.º 3
0
 public function run(JsUtils $js)
 {
     parent::run($js);
     if ($this->content instanceof HtmlDoubleElement) {
         $this->content->run($js);
     } else {
         if (is_array($this->content)) {
             foreach ($this->content as $itemContent) {
                 if ($itemContent instanceof HtmlDoubleElement) {
                     $itemContent->run($js);
                 }
             }
         }
     }
 }
Ejemplo n.º 4
0
 public function __construct($identifier)
 {
     parent::__construct($identifier, "span");
     $this->_template = '<span class="glyphicon %glyphicon%" aria-hidden="true"></span>';
 }
Ejemplo n.º 5
0
 public function __construct($identifier, $src = "", $alt = "")
 {
     parent::__construct($identifier, "img");
     $this->setSrc($src);
     $this->setAlt($alt);
 }
Ejemplo n.º 6
0
 public function __construct($identifier, $flag)
 {
     parent::__construct($identifier, "i");
     $this->_template = '<i class="%flag% flag"></i>';
     $this->flag = $flag;
 }
 public function __construct($identifier, $tagName = "br", $baseClass = "ui")
 {
     parent::__construct($identifier, $tagName);
     $this->_baseClass = $baseClass;
     $this->setClass($baseClass);
 }