I am trying to insert simple text to my custom form (not system.xml).
There is a UI component for Form or DynamicRow to show static text: https://devdocs.magento.com/guides/v2.3/ui_comp_guide/components/ui-text.html
How I try to use it:
...
</field>
<text name="my_text">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="visible" xsi:type="boolean">true</item>
<item name="label" xsi:type="string">My Text</item>
</item>
</argument>
<settings>
<label translate="false">My Text</label>
<addBefore translate="false">My Text</addBefore>
<addAfter translate="false">My Text</addAfter>
</settings>
</text>
<field name="i_am_next_field" formElement="textarea">
...
It seems incorrect way to use this ui component. How to insert text to my form?
<item name="notice"
) to dynamicRow. But it's not provided in dynamicRow tempate. For simple fieldsnotice
works like a charmmagento/module-ui/view/base/web/templates/form/element/text.html
. But how to use it?