0.0.7 • Published 4 years ago

sys-sidemenubar v0.0.7

Weekly downloads
28
License
-
Repository
-
Last release
4 years ago

SysSidemenubar

sys-sidemenubar

Angular component for navbar

  • Requires Angular version 9 or higher!

  • Requires Bootstrap 4

Usage

  1. Install sys-sidemenubar through npm package manager using the following command:

npm i sys-sidemenubar --save
  1. Add SysSidemenubar into your AppModule class. app.module.ts would look like this:

  

import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {AppComponent} from './app.component';
import { SysSidemenubarModule } from 'sys-sidemenubar';
@NgModule({
imports: [BrowserModule,SysSidemenubarModule ],
declarations: [AppComponent],
bootstrap: [AppComponent],
}
export class AppModule {
}
  1. Include Bootstrap ,jquery,popper and font-awesome

		1.Installing using below cmd  

		` npm install bootstrap @popperjs/core font-awesome jquery --save`
 

		2.Import in angular.json like below 

		    "styles": [
		    "node_modules/bootstrap/dist/css/bootstrap.min.css",
		    "node_modules/font-awesome/css/font-awesome.css"
		    ],
		    "scripts": [
		    "node_modules/jquery/dist/jquery.min.js",
		    "node_modules/@popperjs/core/dist/umd/popper.js",
		    "node_modules/bootstrap/dist/js/bootstrap.min.js"
		    ]
  1. Add the tag <sys-sidemenubar> in app.component.html

    <sys-sidemenubar menuList="data" position="'left'" icon="true" backgroundColor="'green'" itemColor="'white'">

Sample data for menuList input

data=[ 

{name:'home',submenu:[],path:'/home',iconHtml:"<img src='Picture.png' height='22' width='22'>" }, {name:'dashboard',submenu:[],path:'/dashboard'}, {name:'about',submenu:[ {name:'home',path:'/home',iconHtml:" <i class='fa fa-bar-chart'></i>"}, {name:'about',path:'/about',iconHtml:" <i class='fa fa-table'></i>"}], iconHtml:" <i class='fa fa-fw fa-compass'></i>"} ];
InputTypeDefaultOption
menuListany[]
positionstring'left''left','right' or 'top'
iconbooleantruetrue or false
backgroundColorstring'#cad0d6'any
itemColorstring'black'any
0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago