1.0.6 • Published 2 years ago

@iatec/ng2-layout v1.0.6

Weekly downloads
2
License
MIT
Repository
-
Last release
2 years ago

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,
   ]
 })
1.0.6

2 years ago

1.0.5

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.46

5 years ago

0.0.45

5 years ago

0.0.44

5 years ago

0.0.43

5 years ago

0.0.42

5 years ago

0.0.41

5 years ago

0.0.40

5 years ago

0.0.39

5 years ago

0.0.38

5 years ago

0.0.37

5 years ago

0.0.36

5 years ago

0.0.35

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.32

6 years ago

0.0.31

6 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago