Example #1
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 #2
0
 public function __construct($args = [])
 {
     parent::__construct('mdatagrid', $args);
 }
Example #3
0
 public function onLoad()
 {
     parent::onLoad();
     $this->createFields();
 }