I have created a GUI button, and i would like to enable the button when the user selects any folder only.
I have tried to give the config xml like below, but its displaying always.
<ext:apply>
<ext:view name="DashboardView">
<ext:control id="DashboardToolbar"/>
</ext:view>
<ext:view name="FolderView">
<ext:control id="ItemToolbar"/>
</ext:view>
</ext:apply>
You have to implement the
isEnabledmethod in theCommandinterface with the following check, to make sure that the type of the selected element is FOLDER.trueon theisEnabledfunction, the button will be enabled.false, the button will be disabledIf you need further information on how to setup the extension you can refer to: