HI,
I’m creating a custom widget. all work well except one thing.
I can’t get the depends satisfaction when using this directive with a block parameter.
The block “tile_link_page” is always shown.
<parameter name="enable_url" xsi:type="select" visible="true" source_model="Magento\Config\Model\Config\Source\Yesno" sort_order="0" >
<label>Add URL like</label>
<description>Enable or disable link </description>
</parameter>
<parameter name="tile_link_page" xsi:type="block" visible="true" sort_order="0" >
<label translate="true">Links</label>
<block class="hp\tile\Block\Adminhtml\Widget\PageChooser">
<data>
<item name="button" xsi:type="array">
<item name="open" xsi:type="string" translate="true">Select Page...</item>
</item>
</data>
</block>
<depends>
<parameter name="enable_url" value="1" />
</depends>
</parameter>
This work well with more simple parameter like a textfield. What i’m missing ?
Thanks