Hi Serkan,

Try provide to this menu dataProvider with XML instead declaring it in MXML
? Does it work ?

Thanks,
Piotr

sob., 2 lis 2019 o 13:08 Serkan Taş <[email protected]>
napisał(a):

> Hi,
>
> I am using the below declaration for the initialization of menu :
>
>     <fx:Declarations>
>         <fx:XMLList id="menuDataXMLList">
>             <menuitem label="{resourceManager.getString('messages',
> 'configFiles')}" id="configfiles" role="{UserRole.OPERATION}">
>                 <menuitem label="label-1-1"/>
>                 <menuitem label="label-1-2"/>
>             </menuitem>
>         </fx:XMLList>
>         </fx:Declarations>
>
> Unfortunately it is not working. I guess the resource can not be retrieved
> this way, because when I change the code as below it is disğlayed as
> expected :
>
>
>     <fx:Declarations>
>         <fx:XMLList id="menuDataXMLList">
>             <menuitem label="label-1" id="configfiles">
>                 <menuitem label="label-1-1"/>
>                 <menuitem label="label-1-2"/>
>             </menuitem>
>         </fx:XMLList>
>       </fx:Declarations>
>
> Should I file an issue ?
>
> Thanks,
> Serkan
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Reply via email to