@discoveryjs/discovery
Version:
Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards
34 lines (32 loc) • 828 B
JavaScript
/* eslint-env browser */
const onClick = () => alert('changed!');
export default {
demo: {
view: 'nav-button',
data: { text: 'I am nav button' }
},
examples: [
{
title: 'With href',
demo: {
view: 'nav-button',
data: { text: 'I am nav button', href: '#' }
}
},
{
title: 'External link',
demo: {
view: 'nav-button',
data: { text: 'I am nav button', external: true, href: 'https://github.com/discoveryjs/discovery' }
}
},
{
title: 'On click handler',
demo: {
view: 'nav-button',
data: { text: 'I am nav button'},
onClick
}
}
]
};