phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlLabel.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\bootstrap\html
;
4
11
use
Ajax\bootstrap\html\base\HtmlBsDoubleElement
;
12
use
Ajax\bootstrap\html\base\CssRef
;
13
14
class
HtmlLabel
extends
HtmlBsDoubleElement
{
15
16
public
function
__construct
(
$identifier
, $caption, $style=
"label-default"
) {
17
parent::__construct(
$identifier
,
"span"
);
18
$this->content=$caption;
19
$this->
setProperty
(
"class"
,
"label"
);
20
$this->
setStyle
($style);
21
}
22
29
public
function
setStyle
($cssStyle) {
30
return
$this->
addToPropertyCtrl
(
"class"
, CssRef::getStyle($cssStyle,
"label"
), CssRef::Styles(
"label"
));
31
}
32
}
Ajax\bootstrap\html\HtmlLabel
Definition
HtmlLabel.php:14
Ajax\bootstrap\html\HtmlLabel\setStyle
setStyle($cssStyle)
define the label style avaible values : "label-default","label-primary","label-success",...
Definition
HtmlLabel.php:29
Ajax\bootstrap\html\HtmlLabel\__construct
__construct($identifier, $caption, $style="label-default")
Definition
HtmlLabel.php:16
Ajax\bootstrap\html\base\CssRef
Default HTML values for Twitter Bootstrap HTML components.
Definition
CssRef.php:12
Ajax\bootstrap\html\base\HtmlBsDoubleElement
Definition
HtmlBsDoubleElement.php:10
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\traits\BaseHtmlPropertiesTrait\addToPropertyCtrl
addToPropertyCtrl($name, $value, $typeCtrl)
Definition
BaseHtmlPropertiesTrait.php:87
Ajax\common\html\traits\BaseHtmlPropertiesTrait\setProperty
setProperty($name, $value)
Definition
BaseHtmlPropertiesTrait.php:30
Ajax\bootstrap\html
Ajax
bootstrap
html
HtmlLabel.php
Generated on Sun Dec 10 2023 16:15:54 for
phpMv-UI
by
doxygen
1.9.8