Example #1
0
 public function __construct($baseControl)
 {
     parent::__construct($baseControl);
     $this->fields = $baseControl->getControls()->get('fields');
     $this->buttons = $baseControl->getControls()->get('buttons');
     $this->helps = $baseControl->getControls()->get('helps');
 }
Example #2
0
 public function addControl($control)
 {
     $tag = $control->tag == 'mhtml' ? $control->tag : $control->tag;
     if ($tag == 'buttons' || $tag == 'help' || $tag == 'tools' || $tag == 'toolbar') {
         $this->{$tag} = $control;
     } else {
         if ($control->tag == 'mform') {
             $control->style->border = false;
         }
         parent::addControl($control);
     }
 }
Example #3
0
 public function __construct($args = [])
 {
     parent::__construct('mdatagrid', $args);
 }