/** * Add default toolbar commands * . * @param Library\CommandContext $context A command context object */ protected function _afterControllerBrowse(Library\CommandContext $context) { parent::_afterControllerBrowse($context); $this->addSeparator(); $this->addEnable(); $this->addDisable(); }
/** * Add default toolbar commands * . * @param Library\CommandContext $context A command context object */ protected function _afterControllerBrowse(Library\CommandContext $context) { parent::_afterControllerBrowse($context); $this->addSeparator(); $this->addEnable(array('label' => 'publish', 'attribs' => array('data-data' => '{published:1}'))); $this->addDisable(array('label' => 'unpublish', 'attribs' => array('data-data' => '{published:0}'))); }
/** * Add default toolbar commands * . * @param Library\CommandContext $context A command context object */ protected function _afterControllerBrowse(Library\CommandContext $context) { parent::_afterControllerBrowse($context); $this->addSave(); $this->addApply(); $this->addCancel(array('attribs' => array('data-novalidate' => 'novalidate'))); }
/** * Add default toolbar commands * . * @param Library\CommandContext $context A command context object */ protected function _afterControllerBrowse(Library\CommandContext $context) { parent::_afterControllerBrowse($context); $this->reset(); }