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
3
namespace
Ajax\semantic\html\content
;
4
5
use
Ajax\semantic\html\base\HtmlSemDoubleElement
;
6
use
Ajax\semantic\html\base\constants\Wide
;
7
use
Ajax\semantic\html\base\traits\TextAlignmentTrait
;
8
use
Ajax\semantic\html\elements\HtmlDivider
;
9
16
class
HtmlGridCol
extends
HtmlSemDoubleElement
{
17
use
TextAlignmentTrait
;
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
}
Ajax\common\html\HtmlSingleElement\setClass
setClass($classNames)
Definition:
HtmlSingleElement.php:15
Wide
Ajax\semantic\html\content\HtmlGridCol\setValue
setValue($value)
Definition:
HtmlGridCol.php:39
Ajax\semantic\html\base\traits\TextAlignmentTrait
trait TextAlignmentTrait
Definition:
TextAlignmentTrait.php:7
Ajax\common\BaseEnum\getConstants
static getConstants()
Definition:
BaseEnum.php:17
HtmlDivider
Ajax\semantic\html\content\HtmlGridCol\setValues
setValues($value)
Definition:
HtmlGridCol.php:44
Ajax\common\html\BaseHtml\wrap
wrap($before, $after="")
Definition:
BaseHtml.php:171
HtmlSemDoubleElement
Ajax\semantic\html\content
Definition:
HtmlAbsractItem.php:3
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition:
BaseWidget.php:14
Ajax\semantic\html\content\HtmlGridCol
A col in the Semantic Grid component.
Definition:
HtmlGridCol.php:16
Ajax\semantic\html\elements\HtmlDivider
Semantic UI divider component.
Definition:
HtmlDivider.php:14
Ajax\semantic\html\base\HtmlSemDoubleElement
Base class for Semantic double elements.
Definition:
HtmlSemDoubleElement.php:23
Ajax\semantic\html\content\HtmlGridCol\addDivider
addDivider($vertical=true, $content=NULL)
Definition:
HtmlGridCol.php:48
Ajax\semantic\html\content\HtmlGridCol\__construct
__construct($identifier, $width=NULL)
Definition:
HtmlGridCol.php:19
Ajax\common\html\traits\addToPropertyCtrl
addToPropertyCtrl($name, $value, $typeCtrl)
Definition:
BaseHtmlPropertiesTrait.php:87
Ajax\semantic\html\content\HtmlGridCol\setWidth
setWidth($width)
Defines the col width.
Definition:
HtmlGridCol.php:31
Ajax\common\html\HtmlDoubleElement\$content
$content
Definition:
HtmlDoubleElement.php:14
Ajax
semantic
html
content
HtmlGridCol.php
Generated on Thu Sep 19 2024 23:26:03 for
phpMv-UI
by
doxygen
1.8.13