method button documentation in bbn\Html\Builder
function($cfg, $force = false)
{
if ( \is_string($cfg) ){
$cfg = [
'text' => $cfg
];
if ( !isset($cfg['attr']) ){
$cfg['attr'] = [];
}
}
if ( !isset($cfg['attr']['class']) ){
$cfg['attr']['class'] = self::$button_class;
}
else{
$cfg['attr']['class'] .= ' '.self::$button_class;
}
self::giveId($cfg);
$cfg['tag'] = 'button';
$e = new Element($cfg);
return $this->_chainable && !$force ? $this : $e;
}
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