isBootstrapAttribute('on', function($return) use($type) { $this->settings['attr']['on'] = Base::suffix($return, '.bs.' . $type); }); return $this->bootstrapObjectOptions($selector === 'all' ? '[data-toggle="'.$type.'"]' : $selector, $content ?? [], $type); } /** * Protected use property scripts */ protected function usePropertyScripts($selector, $content, $type) { $this->isBootstrapAttribute('on', function($return) use($type) { $this->settings['attr']['on'] = Base::suffix($return, '.bs.' . $type); }); return $this->bootstrapObjectOptions((ctype_alpha($selector[0]) ? '#' : '') . $selector, $this->stringOrCallback($content), $type); } }