Magento 2 Adminhtml添加自定义表

问题描述 投票:0回答:1

我想在这里添加表格enter image description here

类似于客户中的一个->编辑。我想出了如何创建它(在system.xml中):

<system>
    <tab id="example_tab" sortOrder="10">
        <label>MYModule</label>
    </tab>

    <section id="example_section" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
        <label>Example config section</label>
        <tab>example_tab</tab>

        <resource>MYModule_SendCoupon::config</resource>

        <group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Partner Informations</label>

            <field id="name" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Name</label>
                <validate>required-entry validate-number</validate>
            </field>

        </group>

    </section>
</system>

但是我不知道如何以我的形式显示它。建议?

templates magento magento2 adminhtml
1个回答
0
投票
您需要使用

UI组件这是中等的指南https://medium.com/@jhonkelly2016/how-to-create-admin-grid-in-magento-2-9f39d052322d您也可以查看magento的官方指南以了解更多信息https://devdocs.magento.com/guides/v2.3/ui_comp_guide/bk-ui_comps.html

© www.soinside.com 2019 - 2024. All rights reserved.