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 
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","label-info","label-warning","label-danger"
Definition: HtmlLabel.php:29
__construct($identifier, $caption, $style="label-default")
Definition: HtmlLabel.php:16
static Styles($prefix="btn")
Definition: CssRef.php:27
static getStyle($cssStyle, $prefix)
return a valid style avaible values : "default","primary","success","info","warning","danger"
Definition: CssRef.php:346
addToPropertyCtrl($name, $value, $typeCtrl)