本文整理汇总了PHP中Magento\Backend\Block\Widget\Tabs类的典型用法代码示例。如果您正苦于以下问题:PHP Tabs类的具体用法?PHP Tabs怎么用?PHP Tabs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Tabs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _beforeToHtml
/**
* Set tabs
*
* @return \Magento\Connect\Block\Adminhtml\Extension\Custom\Edit\Tabs
*/
protected function _beforeToHtml()
{
// $this->addTab('package', array(
// 'label' => __('Package Info'),
// 'content' => $this->_getTabHtml('package'),
// 'active' => true,
// ));
//
// $this->addTab('release', array(
// 'label' => __('Release Info'),
// 'content' => $this->_getTabHtml('release'),
// ));
//
// $this->addTab('maintainers', array(
// 'label' => __('Authors'),
// 'content' => $this->_getTabHtml('authors'),
// ));
//
// $this->addTab('depends', array(
// 'label' => __('Dependencies'),
// 'content' => $this->_getTabHtml('depends'),
// ));
//
// $this->addTab('contents', array(
// 'label' => __('Contents'),
// 'content' => $this->_getTabHtml('contents'),
// ));
//
// $this->addTab('load', array(
// 'label' => __('Load local Package'),
// 'class' => 'ajax',
// 'url' => $this->getUrl('adminhtml/*/loadtab', array('_current' => true)),
// ));
return parent::_beforeToHtml();
}
示例2: _construct
/**
* Constructor.
*/
public function _construct()
{
parent::_construct();
$this->setId('ddg_rules_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Exclusion Rule'));
}
示例3: _construct
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('page_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Page Information'));
}
示例4: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('emizentech_shopbybrand_items_edit_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Item'));
}
示例5: _construct
protected function _construct()
{
parent::_construct();
$this->setId('testimonial_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Testimonial Information'));
}
示例6: _beforeToHtml
/**
* {@inheritdoc}
*/
protected function _beforeToHtml()
{
$this->addTab('general_section', ['label' => __('General Information'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\General')->toHtml()]);
$this->addTab('meta_section', ['label' => __('Search Engine Optimization'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Meta')->toHtml()]);
$this->addTab('products_section', ['label' => __('Related Products'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Products')->toHtml()]);
return parent::_beforeToHtml();
}
示例7: _construct
/**
* Initialize tabs and define tabs block settings
*
* @return void
*/
public function _construct()
{
parent::_construct();
$this->setId('theme_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Theme'));
}
示例8: _construct
/**
* Initialize tab
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('billing_agreement_view_tabs');
$this->setDestElementId('billing_agreement_view');
$this->setTitle(__('Billing Agreement View'));
}
示例9: _beforeToHtml
/**
* @return $this
*/
protected function _beforeToHtml()
{
$this->addTab('main', array('label' => __('Properties'), 'title' => __('Properties'), 'content' => $this->getChildHtml('main'), 'active' => true));
$this->addTab('labels', array('label' => __('Manage Labels'), 'title' => __('Manage Labels'), 'content' => $this->getChildHtml('labels')));
$this->addTab('front', array('label' => __('Frontend Properties'), 'title' => __('Frontend Properties'), 'content' => $this->getChildHtml('front')));
return parent::_beforeToHtml();
}
示例10: _construct
/**
* Initialize integration edit page tabs
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('integration_edit_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Basic Settings'));
}
示例11: _construct
/**
* set form data
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('umc_base_module_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Module Creator'));
}
示例12: _construct
/**
* Internal constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('widget_instace_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Widget'));
}
示例13: _construct
/**
* Class constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('post_edit_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Category Information'));
}
示例14: _prepareLayout
/**
* Prepare Layout Content
*
* @return $this
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
protected function _prepareLayout()
{
$this->addTab('category', ['label' => __('Category information'), 'content' => $this->getLayout()->createBlock('Mageplaza\\Blog\\Block\\Adminhtml\\Category\\Edit\\Tab\\Category', 'mageplaza_blog_category_edit_tab_category')->toHtml()]);
$this->addTab('post', ['label' => __('Posts'), 'content' => $this->getLayout()->createBlock('Mageplaza\\Blog\\Block\\Adminhtml\\Category\\Edit\\Tab\\Post', 'mageplaza_blog_category_edit_tab_post')->toHtml()]);
// dispatch event add custom tabs
$this->_eventManager->dispatch('adminhtml_mageplaza_blog_category_tabs', ['tabs' => $this]);
return parent::_prepareLayout();
}
示例15: _prepareLayout
/**
* @return $this
*/
protected function _prepareLayout()
{
$role = $this->_coreRegistry->registry('current_role');
$this->addTab('info', $this->getLayout()->createBlock('Magento\\User\\Block\\Role\\Tab\\Info')->setRole($role)->setActive(true));
if ($role->getId()) {
$this->addTab('roles', array('label' => __('Role Users'), 'title' => __('Role Users'), 'content' => $this->getLayout()->createBlock('Magento\\User\\Block\\Role\\Tab\\Users', 'role.users.grid')->toHtml()));
}
return parent::_prepareLayout();
}