# mat-page-block

> Blocks angular application UI.

Latest version **1.0.1** (published 2020-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install mat-page-block
pnpm add mat-page-block
yarn add mat-page-block
bun add mat-page-block
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-01-09 |
| First published | 2020-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daud Minhas |
| Maintainers | daudminhas |
| Keywords | angular, angular-material, typescript, page, block, mat |

## Links

- npm: https://www.npmjs.com/package/mat-page-block
- Repository: https://github.com/daudminhas/mat-page-block
- Issues: https://github.com/daudminhas/mat-page-block/issues
- npm.io page: https://npm.io/package/mat-page-block

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0
- [@angular/material](https://npm.io/package/@angular/material.md) ^8.2.3

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-01-09
- 1.0.0 — 2020-01-02

## README

# Material Page Block

Blocks angular application UI.

## How to use

After installing the package, follow these steps:

- **Step 1:** Import `PageBlockModule` in `AppModule`.

- **Step 2:** Add `<mat-page-block>` tag in *app.component.html* file. (Tag placement can vary according to application structure. *Make sure this tag must be placed at the last of html page*).

- **Step 3:** Inject `PageBlockService` in constructor.

- **Step 4:** Use `blockPage()` & `unblockPage()` methods to show or hide app blocker.

`blockPage()` method takes `PageBlockOptions` as parameter (Optional) which have following properties:

Property | Type | Default Value
-------- | ---- | ------------
`color` | *'primary'*, *'accent'*, *'warn'* | 'primary'
`fillColor` | *string* | #fff
`fillOpacity` | *number* | 0.5
`text` | *string* | `undefined`
`timeout` | *number* | `undefined`

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