0.0.8 • Published 1 year ago

kapela-sidebar v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

About

This library contains component for dynamic sidebar

Install

$npm install kapela-sidebar

Usage

import

import { KapelaSidebarComponent, MenuModel } from 'kapela-sidebar';

@Component({
  ...
  imports: [ KapelaSidebarComponent ],
  ...
})

dom

<kapela-sidebar></kapela-sidebar>

Model

MenuModel

export class MenuModel {
  title: string = '';
  icon?: string;
  route?: string = '';
  submenu?: MenuModel[] = [];
}

Attributes

NameTypedefaultComments
logostringhttps://i.ibb.co/drKVdvW/logo.pngURL or project images resources
logoHeightnumber30height of logo in px
logoWidthnumber30width of logo in px
labelstringKapelaLabel associated to the Logo
menuListMenuModel[]
footerMenuListMenuModel[]
menuIconHeightnumber24height of menu icon px
menuIconWidthnumber24width of menu icon in px
collapsedbooleantrueset default status of sidebar true for collapse by default
timeToCollapsenumber10time in ms to collapse the sidebar when mouse leave
timeToOpennumber10time in ms to open the sidebar when mouse enter
0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago