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
3namespace Ajax\bootstrap\html;
4
13
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}
setStyle($cssStyle)
define the label style avaible values : "label-default","label-primary","label-success",...
Definition HtmlLabel.php:29
__construct($identifier, $caption, $style="label-default")
Definition HtmlLabel.php:16
Default HTML values for Twitter Bootstrap HTML components.
Definition CssRef.php:12