0.0.3 • Published 3 years ago

@bluehorse/ion-display-messages v0.0.3

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

IonDisplayMessages

This library is to display messages in Ionic. Recommendation: Ionic 5+ in the main project. This library was generated with Angular CLI version 8.2.14.

Installation

npm i @bluehorse/ion-display-messages

Module

IonDisplayMessagesModule

Component

IonDisplayMessagesComponent

Usage

<lib-ion-display-messages
    [isVisible]="condition" 
    [dismissible]="true" 
    [icon]="true" 
    [type]="'error'">
        {{MESSAGE}}
</lib-ion-display-messages>

Attributes

AtributetypeDefault
isVisiblebooleantrue
dismissiblebooleantrue
iconbooleantrue
type'success'/'info'/'warning'/'error''info'

Examples

example-success example-info example-warning example-error

Code scaffolding

Run ng generate component component-name --project ion-display-messages to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ion-display-messages.

Note: Don't forget to add --project ion-display-messages or else it will be added to the default project in your angular.json file.

Build

Run ng build ion-display-messages to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build ion-display-messages, go to the dist folder cd dist/ion-display-messages and run npm publish.

Running unit tests

Run ng test ion-display-messages to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago