0.0.14 • Published 6 years ago

material2-extensions v0.0.14

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Angular Material 2 Extensions

A component library of custom extensions to Angular Material 2.

Build Status

https://nodei.co/npm/material2-extensions.png?downloads=true&downloadRank=true&stars=true

Components

How to use

Important: First make sure you have Angular Material 2 working, by following the steps below.

You'll need to choose a CSS theme from node_modules/@angular/material/prebuilt-themes and make it available to your application. If you for example placed it in your assets directory can then link to it like this in your index.html:

<link href="assets/indigo-pink.css" rel="stylesheet">

Additionally you'll have to import the Material Design icons. You can use the version hosted by Google by adding the following line to your index.html:

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

Chip-input

npm.io

<mat-chip-input [options]="['option 1', 'option 2', 'option 3']"></mat-chip-input>
InputsTypeDescriptionRequired
optionsArray\the list of auto-complete optionsyes
placeholderstringplaceholder text in input fieldno
chipsArray\preselected chipsno
isOptionsFilterbooleanfilter the options as you type, default = trueno
OutputsTypeDescription
onValueChangeArray\emits the list of chips when a chip is added or removed
onIllegalInputstringemits an error message if the user pressed enter while the input field contains a value that is not a valid option
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