A simple layout use angular material
npm install cnp-layoutThis library was generated with Angular CLI version 10.1.0.
Run ng generate component component-name --project cnp-layout to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project cnp-layout.
> Note: Don't forget to add --project cnp-layout or else it will be added to the default project in your angular.json file.
Run ng build cnp-layout to build the project. The build artifacts will be stored in the dist/ directory.
After building your library with ng build cnp-layout, go to the dist folder cd dist/cnp-layout and run npm publish.
Run ng test cnp-layout to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
github.com/htcnp/cnp-lib
ts
@Input() item: any; // use MenuItem[]
@Input() root: boolean;
@Input() visible: boolean;
@Output() hideMenu: EventEmitter = new EventEmitter();
`I/O topbar
`ts
@Input() leftMenu: TopBarMenuItem[] = [];
@Input() langMenu: TopBarLangMenu;
@Input() userMenu: TopBarUserMenu;
@Input() username = '';
@Input() isShowMenuButton: boolean;
@Output() doToggleMenu: EventEmitter = new EventEmitter();
``