12.0.2 • Published 3 years ago

ng-mat-icon-bar v12.0.2

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

NgMatIconBar

The component creates an icon-bar which expands a list of Material icons on click. See the demo for the effect: NgMatSearchBar demo

Installation

Install the dependency via npm:

npm install ng-mat-icon-bar --save

or yarn

yarn add ng-mat-icon-bar

and import the module into your apps app.module.ts like this:

import { NgMatIconBarModule } from 'ng-mat-icon-bar';

...

@NgModule({
  ...,
  imports: [
    ...,
    NgMatIconBarModule
  ],
  ...
})

and you also need to add Material Icons webfont by adding

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

to your index.html.

Usage

You can use the component with its selector:

<mat-icon-bar>
    // add your icons in here like this:
    <mat-icon (click)="doSomething()">icon</mat-icon>
</mat-icon-bar>

The component has two event outputs:

  • onOpen: triggered when bar is shown
  • onClose: triggered when bar is closed

Optionally you can force the component to show a confirmation dialog before closing. This is done by setting [confirmClose]="true". You can then provide a Translation object to use custom text in the confirm-dialog be setting [translation]-property.

Contributions

Please don't hesitate to file an issue or send in a PR if you have any improvements or found bugs.

12.0.0

3 years ago

12.0.1

3 years ago

12.0.2

3 years ago

10.0.0

3 years ago

11.0.0

3 years ago

9.0.1

4 years ago

9.0.0

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.2

4 years ago

3.0.1

5 years ago

2.0.0

5 years ago

3.0.0

5 years ago

2.0.0-beta.2

6 years ago

2.0.0-beta.1

6 years ago

1.0.0

6 years ago

1.0.0-rc.1

6 years ago

1.0.0-beta.6

6 years ago

1.0.0-beta.5

6 years ago

1.0.0-beta.4

6 years ago

1.0.0-beta.3

6 years ago

1.0.0-beta.2

6 years ago

1.0.0-beta.1

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago