phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlGlyphButton.php
Go to the documentation of this file.
1<?php
2
3namespace Ajax\bootstrap\html;
4
11 protected $glyph;
12
13 public function __construct($identifier, $glyph=0, $value="", $cssStyle=null, $onClick=null) {
14 parent::__construct($identifier, $value, $cssStyle, $onClick);
15 $this->_template='<%tagName% id="%identifier%" %properties%>%glyph% %content%</%tagName%>';
16 $this->tagName="button";
17 $this->setGlyph($glyph);
18 }
19
20 public function setGlyph($glyph) {
21 $this->glyph=new HtmlGlyphicon($this->identifier."-glyph");
22 $this->glyph->setGlyphicon($glyph);
23 return $this;
24 }
25}
Twitter Bootstrap Button component.
Twitter Bootstrap Button component with a Glyph icon.
__construct($identifier, $glyph=0, $value="", $cssStyle=null, $onClick=null)
Composant Twitter Bootstrap Glyphicon.