Sidebar Demo App
iOS
Android
/* Sidebar Navigation Menu Configuration */
[
{
"subLinks": [],
"label": "Sample Contact",
"url": "https://gonativeio.github.io/gonative-demos/contact.html"
},
{
"subLinks": [],
"label": "Sample About",
"url": "https://gonativeio.github.io/gonative-demos/about.html"
}
]
/* Set Sidebar Menu Items */
var items = [{
label: "Google",
url: "https://google.com",
icon: "fas fa-cog" // optional Font Awesome icon
}, {
label: "Sample Grouping",
isGrouping: true,
subLinks: [{
label: "Apple",
url: "https://apple.com",
icon: "fas fa-home" // optional
}, {
label: "Google",
url: "https://google.com",
icon: "fas fa-home" //optional
}]
}, {
label: "Sample Javascript",
url: "javascript:alert('test')"
}];
var json = JSON.stringify(items);
window.location.href="median://sidebar/setItems?items=" + encodeURIComponent(json);
Updated about 2 months ago
Next Steps