1.1.3 • Published 5 years ago

lib-phule v1.1.3

Weekly downloads
49
License
-
Repository
-
Last release
5 years ago

LibPhule Demo

This library was generated with Angular CLI version 7.2.0.

Preview

Image of LibPhule Demo

How to use?

  1. Import library to project.
    import { LibPhuleModule } from 'lib-phule';
    @NgModule({
      declarations: [
        AppComponent
      ],
      imports: [
        BrowserModule,
        AppRoutingModule,
        LibPhuleModule
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }
  1. Component and Usage

    ComponentInputTypeExample
    lib-headermenusArray{text: 'Home', link: '/'}, {text: 'Dashboard', link: '/dashboard'}, {text: 'Setting', link: '/setting'}
    actionProfilesArray{text: 'Profile', link: '/profile'}, {text: 'Setting', link: '/setting'}, {text: 'Logout', link: '/logout'}
    avatarLinkString'https://www.tma.vn/Themes/TMAVN.Theme/Images/TMA-logo1.png'
    logoLinkString'https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg'
    ib-sidebarmenusArray{text: 'Home', link: '/'}, {text: 'Dashboard', link: '/dashboard'}, {text: 'Setting', link: '/setting'}
    lib-login
    lib-footer
  2. Example

  • In the html component.

      <lib-header [menus]="menus" [actionProfiles]='actionProfiles' [avatarLink]='avatarLink' [logoLink]='logoLink'></lib-header>
      <div>
        <lib-sidebar [menus]="menus"></lib-sidebar>
        <router-outlet></router-outlet>
      </div>
      <lib-footer></lib-footer>
  • In the ts file.

      export class DashboardComponent implements OnInit {
        menus = [{text: 'Home', link: '/'}, {text: 'Dashboard', link: '/dashboard'}, {text: 'Setting', link: '/setting'}];
        actionProfiles = [{text: 'Profile', link: '/profile'}, {text: 'Setting', link: '/setting'}, {text: 'Logout', link: '/logout'}];
        logoLink = 'assets/TMA-logo1.png';
        avatarLink = 'https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg';
    
        constructor() { }
    
        ngOnInit() {
        }
    
      }
1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.1

5 years ago