{
"title": "Files",
"icon": "+",
"id": "",
"submenu": [
{
"title": "Zip codes",
"endpoint": "/files/postnrs",
"pagetype": "grid",
"hidefilter": "0",
"position": "top",
"id": "zipcodes",
"buttons": [
"add",
"delete",
"edit",
"exit",
"print",
"export"
],
"onclick": {
"endpoint": "/files/postnrs/${id}",
"pagetype": "form",
"buttons": [
"add",
"save",
"list",
"previous",
"next",
"exit"
]
}
},
{
"title": "Country codes",
"endpoint": "/files/landcode?key=*1=1",
"pagetype": "grid",
"hidefilter": "1",
"position": "top",
"pagesize": "md",
"id": "countrycodes",
"buttons": [
"add",
"delete",
"edit",
"exit",
"export"
],
"onclick": {
"endpoint": "/files/landcode/${id}",
"pagetype": "modalform",
"buttons": [
"save",
"previous",
"next",
"exit"
]
}
}
|
This is a sample where the title 'Files' will be shown in the menu, followed by a submenu.
-
-
icon: BOA uses an icon font. You can use this font to display different icons. As developer it is possible to create your own font, and to replace our font. This way you can define your own icons for the buttons and menu options.
-
id: since this item is some kind of a headerline in the menu, an id is not needed.
-
submenu: defines a new level which is an array of standard menu items. Each element of the array will be shown as a new item. This submenu contains 2 items: Zip codes and Country codes.
Multi-level: The menu system is multi-level. A menu-item in a lower level can also have a submenu array. It will start a new level. This has no limits, but in good practice you shouldn't be use more than 4 levels.
The rules are the same for the menu (left menu) and the topmenu. Both has unlimited levels you can use.
|