0.1.0 • Published 6 years ago

tssmenu-lib v0.1.0

Weekly downloads
45
License
-
Repository
-
Last release
6 years ago

To get hands on the code before installing, Click here.

Use npm i tssmenu-lib to install this menu.

If your project does not contains primeng installed, install it using below command


npm i primeng


After installing import the below modules, in app-module.ts or any module file you are accessing it in.


import { MenuLibModule } from 'tssmenu-lib';


Under component import 'MenuInterface' and create variable options of this interface type.


import { MenuInterface } from 'tssmenu-lib/menu-interface'; after importing: options : MenuInterface;


Use this selector in html:


<lib-menu-lib [options]="options"></lib-menu-lib>


variable options consists of : items and styling.


options={ "styling": 'horizontal/vertical', "items" : [ { label: 'File', icon: 'fa-file-o', items: [{ label: 'New', icon: 'fa-plus', items: [ {label: 'Project'}, {label: 'Other'}, ] }, {label: 'Open'}, {separator:true}, {label: 'Quit'} ] }, { label: 'Edit', icon: 'fa-edit', items: [ {label: 'Undo', icon: 'fa-mail-forward'}, {label: 'Redo', icon: 'fa-mail-reply'} ] }, ]}`

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2-alpha-2

6 years ago

0.0.1-beta.1

6 years ago

0.0.1

6 years ago