本文整理汇总了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();
}
开发者ID:Atlis,项目名称:docker-magento2,代码行数:40,代码来源:Tabs.php
示例2: _construct
/**
* Constructor.
*/
public function _construct()
{
parent::_construct();
$this->setId('ddg_rules_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Exclusion Rule'));
}
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:10,代码来源:Tabs.php
示例3: _construct
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('page_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Page Information'));
}
开发者ID:aiesh,项目名称:magento2,代码行数:10,代码来源:Tabs.php
示例4: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('emizentech_shopbybrand_items_edit_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Item'));
}
开发者ID:Doability,项目名称:magento2dev,代码行数:12,代码来源:Tabs.php
示例5: _construct
protected function _construct()
{
parent::_construct();
$this->setId('testimonial_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Testimonial Information'));
}
开发者ID:ktplKunj,项目名称:TestMagento,代码行数:7,代码来源:Tabs.php
示例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();
}
开发者ID:mirasvit,项目名称:module-blog,代码行数:10,代码来源:Tabs.php
示例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'));
}
开发者ID:aiesh,项目名称:magento2,代码行数:12,代码来源:Tabs.php
示例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'));
}
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:12,代码来源:Tabs.php
示例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();
}
开发者ID:aiesh,项目名称:magento2,代码行数:10,代码来源:Tabs.php
示例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'));
}
开发者ID:shabbirvividads,项目名称:magento2,代码行数:12,代码来源:Tabs.php
示例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'));
}
开发者ID:artmouse,项目名称:Umc_Base,代码行数:12,代码来源:Tabs.php
示例12: _construct
/**
* Internal constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('widget_instace_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Widget'));
}
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:12,代码来源:Tabs.php
示例13: _construct
/**
* Class constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('post_edit_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Category Information'));
}
开发者ID:osmansorkar,项目名称:magento2-blog-module,代码行数:12,代码来源:Tabs.php
示例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();
}
开发者ID:mageplaza,项目名称:magento-2-blog-extension,代码行数:14,代码来源:Tabs.php
示例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();
}
开发者ID:aiesh,项目名称:magento2,代码行数:12,代码来源:Edit.php
注:本文中的Magento\Backend\Block\Widget\Tabs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论