Tabbed Views
Appstent supports native tab bar customizations by providing the tabbedView
field type
. The Tabbed Views is a special kind of collection views with its tabs configured in the tabs
JSON array field instead of views like other collection views.
Each tab is represented by its string based title
field and a JSON object based icon
field, that can contain any Appstent individual view, but typically contains an image
type view.
For example, following sample shows a tabbed view containing two custom views.
{
"type": "tabbedView",
"backgroundColor": "#ffffff",
"tabs": [
{
"title": "Featured",
"icon": {
"type": "image",
"source": "star",
"sourceType": "system"
},
"tabContent": {
"type": "custom",
"customViewName": "category_home"
}
},
{
"title": "List",
"icon": {
"type": "image",
"source": "list.bullet",
"sourceType": "system"
},
"tabContent": {
"type": "custom",
"customViewName": "landmark_list"
}
}
]
}
Last updated