定制 web200/magento-dynamic-widget 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

web200/magento-dynamic-widget

最新稳定版本:v0.0.2

Composer 安装命令:

composer require web200/magento-dynamic-widget

包简介

Magento 2 Module Add dynamic widget

README 文档

README

Magento 2 Module Dynamic Select in Widget

Installation

$ composer require "web200/magento-dynamic-widget"

Features

You can add / remove / reorder mulitple select in an Magento 2 widget

<?xml version="1.0" encoding="UTF-8"?>
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
    <widget id="widget_brand" class="Your\Module\Block\Widget\Brand">
        <label>Display Brands</label>
        <description>Display brands</description>
        <parameters>
            <parameter name="title" xsi:type="text" required="true" visible="true" sort_order="10">
                <label>Title</label>
            </parameter>
            <parameter name="brands" xsi:type="block" visible="true" sort_order="20">
                <block class="Web200\DynamicWidget\Block\Adminhtml\Widget\Dynamic">
                    <data>
                        <item name="label" xsi:type="string">City</item>
                        <item name="element" xsi:type="string">Web200\DynamicWidget\Block\Adminhtml\Widget\Select</item>
                        <item name="collection" xsi:type="string">Your\Module\Model\Attribute\Source\Brands</item>
                        <item name="label_add_row" xsi:type="string">Add new brand</item>
                        <item name="label_remove_row" xsi:type="string">Remove brand</item>
                    </data>
                </block>
            </parameter>
        </parameters>
    </widget>
</widgets>

统计信息

  • 总下载量: 303
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2024-04-12