/** * @return $this */ protected function _prepareLayout() { $this->addChild('add_select_row_button', 'Magento\\Backend\\Block\\Widget\\Button', ['label' => __('Add New Row'), 'class' => 'add add-select-row', 'id' => 'product_option_<%- data.option_id %>_add_select_row']); $this->addChild('delete_select_row_button', 'Magento\\Backend\\Block\\Widget\\Button', ['label' => __('Delete Row'), 'class' => 'delete delete-select-row icon-btn', 'id' => 'product_option_<%- data.id %>_select_<%- data.select_id %>_delete']); return parent::_prepareLayout(); }
/** * @return $this */ protected function _prepareLayout() { $this->addChild('add_select_row_button', 'Magento\\Backend\\Block\\Widget\\Button', array('label' => __('Add New Row'), 'class' => 'add add-select-row', 'id' => 'product_option_${option_id}_add_select_row')); $this->addChild('delete_select_row_button', 'Magento\\Backend\\Block\\Widget\\Button', array('label' => __('Delete Row'), 'class' => 'delete delete-select-row icon-btn', 'id' => 'product_option_${id}_select_${select_id}_delete')); return parent::_prepareLayout(); }