public function init() { parent::init(); $this->allowedAttributes[] = 'type'; $this->type = 'submit'; $this->tag = 'button'; }
public function preRender() : string { if (count($this->children) > 0) { foreach ($this->children as $child) { $child->setSelected($child->get('value') == $this->value); } } if (is_null($this->data) === false) { foreach ($this->data as $option) { $value = ''; $label = ''; if (isset($option['label']) === true) { $value = $option['value']; $label = $option['label']; } elseif (isset($option[1]) === true) { $value = $option[0]; $label = $option[1]; } settype($this->value, 'string'); settype($value, 'string'); $this->add($this->build('option', $value, $label, $this->value == $value)); } } return parent::preRender(); }
public function init() { parent::init(); $this->addClass('tab-pane'); $this->addClass('fade'); $this->attributes['role'] = 'tabpanel'; }
public function preChildren() : string { if (is_null($this->legend) === false) { $this->preChildrenHtml .= $this->legend->render(); } return parent::preChildren(); }
public function init() { $this->allowedAttributes[] = 'onsubmit'; $this->allowedAttributes[] = 'enctype'; $this->allowedAttributes[] = 'method'; $this->allowedAttributes[] = 'target'; parent::init(); }
public function init() { parent::init(); $this->addClass('btn-group'); $this->addClass('pull-right'); $this->attributes['role'] = 'group'; $this->add(html::button(lucid::$app->i18n()->translate('button:cancel'), 'secondary', 'history.go(-1);')); $this->add(html::submit(lucid::$app->i18n()->translate('button:save'))); }
public function init() { $this->allowedAttributes[] = 'cellpadding'; $this->allowedAttributes[] = 'cellspacing'; $this->allowedAttributes[] = 'border'; $this->allowedAttributes[] = 'width'; $this->allowedAttributes[] = 'sortable'; parent::init(); }
public function init() { $this->allowedAttributes[] = 'checked'; $this->allowedAttributes[] = 'default'; $this->allowedAttributes[] = 'disabled'; $this->allowedAttributes[] = 'icon'; $this->allowedAttributes[] = 'label'; $this->allowedAttributes[] = 'radiogroup'; $this->allowedAttributes[] = 'type'; parent::init(); }
public function init() { $this->allowedAttributes[] = 'form'; $this->allowedAttributes[] = 'high'; $this->allowedAttributes[] = 'low'; $this->allowedAttributes[] = 'max'; $this->allowedAttributes[] = 'min'; $this->allowedAttributes[] = 'optimum'; $this->allowedAttributes[] = 'value'; parent::init(); }
public function add($child) : \Lucid\Html\TagInterface { if (is_object($child) === false) { if (trim($child) != '') { parent::add($this->build('paragraph')->addClass('card-text')->add($child)); } } else { if ($child->tag == 'blockquote') { $child->addClass('card-blockquote'); parent::add($child); } else { if ($child->tag == 'h3' && $child->hasClass('card-title') === true || $child->tag == 'h4' && $child->hasClass('card-title') === true || $child->tag == 'h6' && $child->hasClass('card-subtitle') === true || $child->tag == 'a' && $child->hasClass('btn') === true || $child->tag == 'a' && $child->hasClass('card-link') === true || $child->tag == 'p' && $child->hasClass('card-text') === true || $child->tag == 'ul') { parent::add($child); } else { parent::add($child); #parent::add($this->build('paragraph')->addClass('card-text')->add($child)); } } } return $this; }
public function add($child) : \Lucid\Html\TagInterface { if (is_object($child) === true) { if ($child->tag == 'input' || $child->tag == 'select' || $child->tag == 'textarea') { parent::add($child); } elseif ($child->tag == 'button' || $child->tag == 'a' && $child->hasClass('btn') === true) { parent::add('<span class="input-group-btn">'); parent::add($child); parent::add('</span>'); } else { parent::add('<span class="input-group-addon">'); parent::add($child); parent::add('</span>'); } } else { parent::add('<span class="input-group-addon">'); parent::add($child); parent::add('</span>'); } return $this; }
public function init() { $this->allowedAttributes[] = 'align'; parent::init(); }
public function init() { parent::init(); $this->tag = 'td'; $this->parameters = ['label', 'data_name', 'width', 'sortable', 'renderer']; }
public function init() { $this->addClass('card-subtitle'); $this->addClass('text-muted'); parent::init(); }
public function init() { parent::init(); #$this->addClass('col'); }
public function init() { $this->allowedAttributes[] = 'width'; $this->allowedAttributes[] = 'span'; parent::init(); }
public function add($child) : \Lucid\Html\TagInterface { if (is_object($child) === false) { parent::add($child); } else { if ($child->tag == 'input' && $child->get('type') == 'checkbox') { $this->useCheckableLayout = true; $this->checkableLayoutClass = 'checkbox'; parent::add($child); } else { if ($child->tag == 'input' && $child->get('type') == 'radio') { $this->useCheckableLayout = true; $this->checkableLayoutClass = 'radio'; parent::add($child); } else { parent::add($child); } } } return $this; }
public function init() { $this->allowedAttributes[] = 'type'; $this->allowedAttributes[] = 'name'; parent::init(); }
public function init() { $this->allowedAttributes[] = 'datetime'; parent::init(); }
public function init() { parent::init(); $this->addClass('nav-item'); }
public function init() { $this->addClass('text-muted'); parent::init(); }
public function init() { $this->addClass('tag'); parent::init(); }
public function init() { $this->addClass('card-header'); parent::init(); }
public function postRender() { $html = parent::postRender(); $html .= $this->renderPanes(); $html .= parent::postRender(); return $html; }
public function init() { parent::init(); $this->addClass('btn-group'); $this->attributes['role'] = 'group'; }
public function init() { $this->allowedAttributes[] = 'rowspan'; $this->allowedAttributes[] = 'colspan'; parent::init(); }
public function add($child) : \Lucid\Html\TagInterface { if (is_object($child) === true) { if ($child->hasClass('card-header') === true || $child->hasClass('card-block') === true || $child->hasClass('card-footer') === true || $child->tag == 'ul' || $child->tag == 'img') { if ($child->tag == 'ul') { $child->addClass('list-group')->addClass('list-group-flush'); } return parent::add($child); } else { $block = $this->get('block'); $block->add($child); return $this; } } else { $block = $this->get('block'); $block->add($child); return $this; } }
public function init() { $this->addClass('card-title'); parent::init(); }
public function init() { $this->addClass('container'); parent::init(); }