0

Vendor/Module/view/adminhtml/ui_component/company_company_form.xml

<field name="theme_color">
                <argument name="data" xsi:type="array">
                    <item name="config" xsi:type="array">
                        <item name="component" xsi:type="string">Amos_Company/js/form/element/color-select</item>
                        <item name="template" xsi:type="string">ui/form/field</item>
                        <item name="elementTmpl" xsi:type="string">Amos_Company/form/element/color-select</item>
                        <item name="label" xsi:type="string">Color Theme</item>
                        <item name="labelVisible" xsi:type="boolean">true</item>
                        <item name="visible" xsi:type="boolean">true</item>
                        <item name="dataType" xsi:type="string">text</item>
                        <item name="formElement" xsi:type="string">input</item>
                        <item name="default" xsi:type="string">#dbb98c</item>
                        <item name="source" xsi:type="string">company_form</item>
                    </item>
                </argument>
            </field>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.