phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlGridCol.php
Go to the documentation of this file.
1 <?php
2 
4 
9 
18 
19  public function __construct($identifier, $width=NULL) {
20  parent::__construct($identifier, "div");
21  $this->setClass("column");
22  if (isset($width))
23  $this->setWidth($width);
24  }
25 
31  public function setWidth($width) {
32  if (\is_int($width)) {
33  $width=Wide::getConstants()["W" . $width];
34  }
35  $this->addToPropertyCtrl("class", $width, Wide::getConstants());
36  return $this->addToPropertyCtrl("class", "wide", array ("wide" ));
37  }
38 
39  public function setValue($value) {
40  $this->content=$value;
41  return $this;
42  }
43 
44  public function setValues($value) {
45  return $this->setValue($value);
46  }
47 
48  public function addDivider($vertical=true, $content=NULL) {
49  $divider=new HtmlDivider("", $content);
50  if ($vertical)
51  $divider->setVertical();
52  else
53  $divider->setHorizontal();
54  $this->wrap($divider,"");
55  return $divider;
56  }
57 }
static getConstants()
Definition: BaseEnum.php:17
wrap($before, $after="")
Definition: BaseHtml.php:171
A col in the Semantic Grid component.
Definition: HtmlGridCol.php:16
Semantic UI divider component.
Definition: HtmlDivider.php:14
Base class for Semantic double elements.
addDivider($vertical=true, $content=NULL)
Definition: HtmlGridCol.php:48
__construct($identifier, $width=NULL)
Definition: HtmlGridCol.php:19
addToPropertyCtrl($name, $value, $typeCtrl)
setWidth($width)
Defines the col width.
Definition: HtmlGridCol.php:31