method __construct documentation in bbn\Html\Button

This will build a new HTML form element according to the given configuration.

Only name and tag are mandatory, then other values depending on the tag

function($cfg) { if ( \is_string($cfg) ){ $cfg = [ 'type' => 'submit', 'text' => $cfg ]; } $cfg['tag'] = 'button'; parent::__construct($cfg); return $this; }

This will build a new HTML form element according to the given configuration. 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.