# cnp-layout

> A simple layout use angular material

Latest version **2.0.0** (published 2020-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install cnp-layout
pnpm add cnp-layout
yarn add cnp-layout
bun add cnp-layout
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-11-15 |
| First published | 2020-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 98.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | truongnh |
| Maintainers | htcnp |
| Keywords | cnp |

## Links

- npm: https://www.npmjs.com/package/cnp-layout
- Repository: https://github.com/htcnp/cnp-lib
- Issues: https://github.com/htcnp/cnp-lib/issues
- npm.io page: https://npm.io/package/cnp-layout

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0

## Recent versions

- 2.0.0 (latest) — 2020-11-15
- 1.9.0 — 2020-10-18
- 1.8.0 — 2020-09-24
- 1.7.0 — 2020-09-23
- 1.6.0 — 2020-09-23
- 1.5.0 — 2020-09-23
- 1.4.0 — 2020-09-22
- 1.3.0 — 2020-09-22
- 1.2.0 — 2020-09-22
- 1.1.0 — 2020-09-22
- 1.0.0 — 2020-09-21
- 0.2.0 — 2020-09-13
- 0.1.0 — 2020-09-13
- 0.0.1 — 2020-09-04

## README

# CnpLayout

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.0.

## Code scaffolding

Run `ng generate component component-name --project cnp-layout` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project cnp-layout`.
> Note: Don't forget to add `--project cnp-layout` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build cnp-layout` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build cnp-layout`, go to the dist folder `cd dist/cnp-layout` and run `npm publish`.

## Running unit tests

Run `ng test cnp-layout` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

## Demo

github.com/htcnp/cnp-lib

## I/O menu 
```ts
@Input() item: any; // use MenuItem[]
@Input() root: boolean;
@Input() visible: boolean;
@Output() hideMenu: EventEmitter<any> = new EventEmitter();
```

## I/O topbar 
```ts
@Input() leftMenu: TopBarMenuItem[] = [];
@Input() langMenu: TopBarLangMenu;
@Input() userMenu: TopBarUserMenu;
@Input() username = '';
@Input() isShowMenuButton: boolean;
@Output() doToggleMenu: EventEmitter<any> = new EventEmitter();
```

---
_Source: https://npm.io/package/cnp-layout · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
