phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
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
Ajax\bootstrap\html\HtmlLabel\setStyle
setStyle($cssStyle)
define the label style avaible values : "label-default","label-primary","label-success","label-info","label-warning","label-danger"
Definition:
HtmlLabel.php:29
CssRef
Ajax\common\html\traits\setProperty
setProperty($name, $value)
Definition:
BaseHtmlPropertiesTrait.php:30
Ajax\bootstrap\html\HtmlLabel\__construct
__construct($identifier, $caption, $style="label-default")
Definition:
HtmlLabel.php:16
Ajax\bootstrap\html\base\HtmlBsDoubleElement
Definition:
HtmlBsDoubleElement.php:10
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition:
BaseWidget.php:14
HtmlBsDoubleElement
Ajax\bootstrap\html\base\CssRef\Styles
static Styles($prefix="btn")
Definition:
CssRef.php:27
Ajax\bootstrap\html\HtmlLabel
Definition:
HtmlLabel.php:14
Ajax\bootstrap\html\base\CssRef\getStyle
static getStyle($cssStyle, $prefix)
return a valid style avaible values : "default","primary","success","info","warning","danger"
Definition:
CssRef.php:346
Ajax\common\html\traits\addToPropertyCtrl
addToPropertyCtrl($name, $value, $typeCtrl)
Definition:
BaseHtmlPropertiesTrait.php:87
Ajax
bootstrap
html
HtmlLabel.php
Generated on Thu Sep 19 2024 23:26:03 for
phpMv-UI
by
doxygen
1.8.13