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