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
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
,
TextAlignmentTrait
{
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
}
Ajax\common\html\BaseHtml\wrap
wrap($before, $after="")
Definition
BaseHtml.php:170
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\HtmlDoubleElement\$content
$content
Definition
HtmlDoubleElement.php:14
Ajax\common\html\HtmlSingleElement\setClass
setClass($classNames)
Definition
HtmlSingleElement.php:15
Ajax\semantic\html\base\HtmlSemDoubleElement
Base class for Semantic double elements.
Definition
HtmlSemDoubleElement.php:23
Ajax\semantic\html\base\constants\Wide
Definition
Wide.php:4
Ajax\semantic\html\base\traits\TextAlignmentTrait
Definition
TextAlignmentTrait.php:7
Ajax\semantic\html\base\traits\TextAlignmentTrait\addToPropertyCtrl
addToPropertyCtrl($name, $value, $typeCtrl)
Ajax\semantic\html\content\HtmlGridCol
A col in the Semantic Grid component.
Definition
HtmlGridCol.php:16
Ajax\semantic\html\content\HtmlGridCol\setValue
setValue($value)
Definition
HtmlGridCol.php:38
Ajax\semantic\html\content\HtmlGridCol\__construct
__construct($identifier, $width=NULL)
Definition
HtmlGridCol.php:18
Ajax\semantic\html\content\HtmlGridCol\setValues
setValues($value)
Definition
HtmlGridCol.php:43
Ajax\semantic\html\content\HtmlGridCol\setWidth
setWidth($width)
Defines the col width.
Definition
HtmlGridCol.php:30
Ajax\semantic\html\content\HtmlGridCol\addDivider
addDivider($vertical=true, $content=NULL)
Definition
HtmlGridCol.php:47
Ajax\semantic\html\elements\HtmlDivider
Semantic UI divider component.
Definition
HtmlDivider.php:14
Ajax\semantic\html\content
Definition
HtmlAbsractItem.php:3
Ajax
semantic
html
content
HtmlGridCol.php
Generated on Sun Dec 10 2023 16:15:52 for
phpMv-UI
by
doxygen
1.9.8