method htmlWithLabel documentation in bbn\Html\Input

Returns the element with its label and inside a div

function($with_script = 1) { $s = $this->html(); if ( !empty($s) ){ if ( BBN_IS_DEV ){ $title = str_replace('"', '', print_r (bbn\Str::makeReadable($this->cfg), true)); } else if ( isset($this->attr['title']) ){ $title = $this->attr['title']; } else{ $title = isset($this->label) ? $this->label : ''; } if ( !isset($this->cfg['field']) || $this->cfg['field'] !== 'hidden' ){ $s = '
'.$s.'
'; } } return $s; }

Returns the element with its label and inside a div 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.