ptz-menu-domain
v1.0.0
Published
Awesome javascript objects and types for Menus.
Downloads
2
Readme
ptz-menu-domain
Translations
Awesome javascript objects and types for Menus.
Use
Install
npm install --save ptz-menu-domain
How to use
import { IMenu } from ptz-menu-domain;
var menu: IMenu = {
label: '',
items: [
{ label: 'Home', link: '/' },
{ label: 'Github', link: 'https://github.com/polutz/polutz' },
{ label: 'About Us', link: '/aboutus' },
{ label: 'Contact', link: '/contact' },
{ label: 'Faq', link: '/faq' },
{ label: 'Log In', link: '/users/login' },
{ label: 'Sign Up', link: '/users/signup' },
{
label: 'Users',
subItems: [
{ label: 'User Report', link: '/users/report', role: 'USERS_VIEW' }
]
}
]
};
Contribute
NPM Global packages
npm install -g ts-node babel-cli
Setup
npm install
Test
npm test