@iatec/ng2-layout
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

npm version Build Status

LayoutIATec

Installation

IATec layout runs on angular 2 (v5+) and is available as an NPM package. You can install @iatec/ng2-layout in your project's directory as usual:

$ npm install --save @iatec/ng2-layout

Example

Template

Global layout

<iatec-layout-css></iatec-layout-css>

Header

<iatec-layout-header 
    logoURL="assets/images/logo.png"
    [profile]="profile"
    [entities]="entityListService.items"
    [currentEntity]="session.entity"
    (changeEntity)="onChangeEntity($event)"
    (allEntities)="onAllEntities($event)"
    [notifications]="notifications"
    (allNotifications)="onAllNotification($event)"
    (clickNotification)="onClickNotification($event)"
    (account)="onClickAccount($event)"
    (signOut)="onClickSignOut($event)"
    [languages]="languages"
    [currentLanguage]="selectedLanguage"
    (clickLanguage)="onClickLanguage($event)"
    >
    <!-- Custom template -->    
    <!-- <ng-template #templateNotification let-item>{{ item | json }}</ng-template> -->
    <!-- <ng-template #templateEntities></ng-template> -->
</iatec-layout-header>

Menu

<iatec-layout-menu 
    [loading]="loadingMenu" 
    [ngModel]="menus"
    [parentId]="1"
    (clickMenu)="onClickMenu($event)"
    (clickFavorite)="onClickFavorite($event)"
    version="1.0.0"
>
<!-- Custom menu template -->
<!-- <ng-template #templateMenuItem let-item>
        <i [class]="item.iconClass"></i> {{item.title}} <span class="badge">{{item.id}}</span>    
</ng-template>  -->
</iatec-layout-menu>

Menu

<iatec-layout-content [loading]="loading">
    <router-outlet></router-outlet>
</iatec-layout-content>

TypeScript (.ts)

 import { IatecLayoutModule } from '@iatec/ng2-layout';

Add in your module

 @NgModule({   
   imports: [
    IatecLayoutModule,
   ]
 })

Readme

Keywords

none

Package Sidebar

Install

npm i @iatec/ng2-layout

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

868 kB

Total Files

61

Last publish

Collaborators

  • jhonatan.costa
  • andregsilv
  • fssolutions
  • rafaelzr
  • dev.emdev