method space documentation in bbn\Html\Builder

function($cfg = NULL, $force = false) { $this->record('space', $cfg); if ( !\is_null($cfg) ){ if ( \is_string($cfg) ){ $cfg = [ 'text' => $cfg ]; } } if ( !\is_array($cfg) ){ $cfg = []; } $cfg['tag'] = 'div'; if ( !isset($cfg['attr']) ){ $cfg['attr'] = []; } $cfg['attr']['class'] = self::$space_class; if ( !isset($cfg['text']) && !isset($cfg['content']) ){ $cfg['content'] = ' '; } $space = new Element($cfg); $this->append($space); return $this->_chainable && !$force ? $this : $space; }

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.