Skip to content

Instantly share code, notes, and snippets.

@VincentLoy VincentLoy/pouet.js
Created Apr 9, 2017

Embed
What would you like to do?
let navigation = navigation: [
{
text: 'Browse categories',
payload: {text: 'pouet'},
},
{
text: 'Surprise me !',
payload: {text: 'pouet'},
},
{
text: 'Help / FAQ',
payload: {text: 'pouet'},
navigation: [
{
text: 'Browse categories',
payload: {text: 'pouet'},
},
{
text: 'Surprise me !',
payload: {text: 'pouet'},
},
],
},
];
let returnedNav = {
'main-nav' : {
parent: null,
items: [
{
text: 'Browse categories',
payload: {text: 'pouet'},
},
{
text: 'Surprise me !',
payload: {text: 'pouet'},
},
{
text: 'Help / FAQ',
payload: {text: 'pouet'},
navigation: 'help-faq',
},
],
},
'help-faq': {
parent: 'main-nav',
items: [
{
text: 'Browse categories',
payload: {text: 'pouet'},
},
{
text: 'Surprise me !',
payload: {text: 'pouet'},
},
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.