method fieldset documentation in bbn\Html\Builder
function($title = NULL, $force = false)
{
$this->record('fieldset', $title);
if ( \is_array($title) ){
$title['tag'] = 'fieldset';
if ( isset($title['legend']) ){
$legend_txt = $title['legend'];
unset($title['legend']);
}
$fieldset = new Element($title);
$fieldset->addClass("bbn-section bbn-widget");
if ( isset($legend_txt) ){
$legend = new Element('legend');
$legend->text($legend_txt);
$fieldset->append($legend);
}
}
else{
$fieldset = new Element('fieldset');
$fieldset->addClass("bbn-section bbn-widget");
if ( !\is_null($title) ){
$legend = new Element('legend');
$legend->text($title);
$fieldset->append($legend);
}
}
if ( $this->_root_element ){
$this->_root_element->append($fieldset);
}
else{
$this->_root_element =& $fieldset;
}
$this->_current_element =& $fieldset;
return $this->_chainable && !$force ? $this : $fieldset;
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions