Exemple #1
0
 /**
  * Builds the Button object.
  *
  * @param mixed $content Button's content.
  * @param mixed $options Button's options.
  * @return ContentTag instance of ContentTag object representing an Html Button.
  */
 private function build_button($content = null, $options = [])
 {
     $this->append_class($options, $this->btn_class($options));
     $button = new ContentTag('button', $content, $options);
     if (Base::get_justified_button_group()) {
         $button = new ContentTag('div', $button, ['class' => 'btn-group', 'role' => 'group']);
     }
     return $button;
 }