public function __construct($identifier, $glyph = 0, $value = "", $cssStyle = null, $onClick = null)
 {
     parent::__construct($identifier, $value, $cssStyle, $onClick);
     $this->_template = "<%tagName% id='%identifier%' %properties%>%glyph% %content%</%tagName%>";
     $this->tagName = "button";
     $this->setGlyph($glyph);
 }
 function traitEntityHasMany_footer()
 {
     return \HtmlButton::addClass('js-curtain-submit btn btn-primary')->setContent($this->traitEntityHasMany_btnText());
 }
Ejemplo n.º 3
0
 function traitEntityAdd_footer()
 {
     return \HtmlButton::addClass('js-curtain-submit btn btn-' . $this->traitEntityAdd_btnClass())->setContent($this->traitEntityAdd_btnText());
 }
Ejemplo n.º 4
0
 function traitEntityItem_footer()
 {
     return \HtmlButton::addClass('js-curtain-close btn btn-default')->setContent(static::translateAction('item.button'));
 }
Ejemplo n.º 5
0
    return HtmlProgressBar::setContent('');
});
Larakit\Twig::register_function('html_a', function ($url) {
    return HtmlA::setHref($url)->setContent($url);
});
Larakit\Twig::register_function('html_audio', function ($src) {
    return HtmlAudio::setSrc($src);
});
Larakit\Twig::register_function('html_abbr', function ($abbr, $fulltext) {
    return HtmlAbbr::setContent($abbr)->setTitle($fulltext);
});
Larakit\Twig::register_function('html_blockquote', function ($content, $author = null) {
    return HtmlBlockquote::setContent($content)->setAuthor($author);
});
Larakit\Twig::register_function('html_button', function ($content) {
    return HtmlButton::setContent($content);
});
Larakit\Twig::register_function('html_div', function ($content = null) {
    return HtmlDiv::setContent($content);
});
Larakit\Twig::register_function('html_i', function ($content = null) {
    return HtmlI::setContent($content);
});
Larakit\Twig::register_function('html_span', function ($content = null) {
    return HtmlSpan::setContent($content);
});
Larakit\Twig::register_function('html_strike', function ($content = null) {
    return HtmlStrike::setContent($content);
});
Larakit\Twig::register_function('html_strong', function ($content = null) {
    return HtmlStrong::setContent($content);
Ejemplo n.º 6
0
 function itemToggler()
 {
     return \HtmlButton::addClass('btn btn-default btn-xs js-collapse-item mr10 t-3')->setAttribute('data-widget', 'collapse')->setAttribute('type', 'button')->setContent('<i class="fa fa-plus"></i>');
 }
Ejemplo n.º 7
0
 function button()
 {
     return \HtmlButton::addClass('btn btn-default btn-' . $this->size);
 }