aharui commented on issue #1084:
URL: https://github.com/apache/royale-asjs/issues/1084#issuecomment-796499266
Array-based Menu data providers default to looking for `menu` instead of
`children` at the 3rd-level and subsequent levels. There's probably some way
to set the `submenuField` in the model, or you can just change the name of the
property in data.
```
// The Array data provider
[Bindable]
public var menuData:Array = [
{label: "MenuItem A", children: [
{label: "SubMenuItem A-1", enabled: false,children: [
{label: "SubMenuItem A-1-1", enabled: false},
{label: "SubMenuItem A-1-2", menu: [
{label: "SubMenuItem A-1-2-1", enabled:
false},
{label: "SubMenuItem A-1-2-2", type:
"normal"}
]}
]},
{label: "SubMenuItem A-2", type: "normal"}
]},
{label: "MenuItem B", type: "check", toggled: true},
{label: "MenuItem C", type: "check", toggled: false},
{type: "separator"},
{label: "MenuItem D", children: [
{label: "SubMenuItem D-1", type: "radio",groupName:
"g1"},
{label: "SubMenuItem D-2", type: "radio",groupName:
"g1", toggled: true},
{label: "SubMenuItem D-3", type: "radio",groupName:
"g1"}
]}
];
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]