0.0.6 • Published 5 years ago

tma-layout v0.0.6

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

Introduction

This library was generated with Angular CLI version 7.2.0.

How to use?

  1. Import lib tma-layout to use.
    import { TmaLayoutModule } from 'tma-layout';
    @NgModule({
      declarations: [
        AppComponent
      ],
      imports: [
        BrowserModule,
        AppRoutingModule,
        TmaLayoutModule
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }
  1. Usage

      <app-header [logo]="logo" [menu]="headerMenu" [userAction]="userAction"></app-header>
      <div class="main-content">
          <app-left-sidebar [menu]="menu"></app-left-sidebar>
          <router-outlet></router-outlet>
      </div>
      <app-footer [footerCol1]="footerCol1" [footerCol2]="footerCol2" [footerCol3]="footerCol3"></app-footer>
  2. Parameter values (inputs)

    ComponentInputTypeExample
    app-headermenuArray{title: "Menu 1", href: "#"},{title: "Menu 2", href: "#"}, ...
    userActionsObject{username: "Nguyen", avatarUrl: "https://raw.githubusercontent.com/azouaoui-med/pro-sidebar-template/gh-pages/src/img/user.jpg", actions: {title: "My Profile", href: "/profile"},{title: "Logout", href: "/login"}}
    logoObject{title: 'TMA Solution', url: 'https://www.tma.vn/Themes/TMAVN.Theme/Images/TMA-logo1.png'}
    app-left-sidebarmenuArray[{title: "Menu 1", href: "#"},{title: "Menu 2", href: "#", children: {title: 'Menu Child 1', href: "#", ...}]
    app-login
    app-footerfooterCol1
    footerCol2
    footerCol3
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.0

5 years ago

0.0.1

5 years ago