Skip to content

Commit

Permalink
Multilevel menu ... #31
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiz4 committed May 30, 2018
1 parent d87a3ef commit 1499f68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions ngx-multi-level-push-menu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,19 @@ export class AppComponent implements OnInit {
constructor(private multiLevelPushMenuService: MultiLevelPushMenuService) {}

ngOnInit() {
this.defaultItems.push(new MultiLevelPushMenuItem('Home', 'home'));
this.defaultItems.push(new MultiLevelPushMenuItem('About us', 'about-us'));
this.defaultItems.push(new MultiLevelPushMenuItem('Home', 'Home', null, 'home'));
this.defaultItems.push(new MultiLevelPushMenuItem('About us', 'About us', null, 'about-us'));

const company = new MultiLevelPushMenuItem('Company', 'Company', null, 'company');
company.items = new Array<MultiLevelPushMenuItem>();
const companySubMenu = new MultiLevelPushMenuItem('Company', 'Company', null, '#');
companySubMenu.items = new Array<MultiLevelPushMenuItem>();
companySubMenu.items.push(new MultiLevelPushMenuItem('Contact', 'Contact', null, 'contact'));
companySubMenu.items.push(new MultiLevelPushMenuItem('Imprint', 'Imprint', null, 'imprint'));
company.items.push(companySubMenu);

this.defaultItems.push(company);

const options: MultiLevelPushMenuOptions = new MultiLevelPushMenuOptions();
options.mode = 'cover';
options.menu = new MultiLevelPushMenu('Explorer', 'explorer', 'fa fa-reorder', this.defaultItems);
Expand Down
2 changes: 1 addition & 1 deletion ngx-multi-level-push-menu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ramiz4/ngx-multi-level-push-menu",
"version": "1.5.11",
"version": "1.5.12",
"repository": "https://github.com/ramiz4/ngx-multi-level-push-menu.git",
"author": "ramiz4 <ramiz4@gmx.de>",
"license": "ISC",
Expand Down

0 comments on commit 1499f68

Please sign in to comment.