13 class Delete extends \Magento\Backend\Block\Widget\Form\Container
22 $this->_objectId =
'item_id';
23 $this->_mode =
'delete';
24 $this->_blockGroup =
'Magento_Backend';
25 $this->_controller =
'system_store';
29 $this->buttonList->remove(
'save');
30 $this->buttonList->remove(
'reset');
32 $this->buttonList->update(
'delete',
'region',
'toolbar');
33 $this->buttonList->update(
'delete',
'onclick',
null);
34 $this->buttonList->update(
37 [
'mage-init' => [
'button' => [
'event' =>
'save',
'target' =>
'#edit_form']]]
40 $this->buttonList->add(
42 [
'label' =>
__(
'Cancel'),
'onclick' =>
'setLocation(\'' . $this->
getBackUrl() .
'\')
'], 54 public function getHeaderText() 58 $this->getStoreTypeTitle(), 59 $this->escapeHtml($this->getChildBlock('form')->getDataObject()->getName()) 69 public function setStoreTypeTitle($title) 71 $this->buttonList->update('delete', 'label
', __('Delete %1
', $title)); 72 return $this->setData('store_type_title
', $title); 81 public function setBackUrl($url) 83 $this->setData('back_url
', $url); 84 $this->buttonList->update('cancel
', 'onclick
', "setLocation('" . $url . "')"); 85 $this->buttonList->update('back
', 'onclick
', "setLocation('" . $url . "')");
jquery extjs ext tree mage adminhtml form