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