diff --git a/README.md b/README.md index 66363be..75dc394 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ # Angular 2 Toasty [![npm version](https://badge.fury.io/js/ng2-toasty.svg)](https://badge.fury.io/js/ng2-toasty) [![npm monthly downloads](https://img.shields.io/npm/dm/ng2-toasty.svg?style=flat-square)](https://www.npmjs.com/package/ng2-toasty) Angular2 Toasty component shows growl-style alerts and messages for your application. -Follow me [![twitter](https://img.shields.io/twitter/follow/akopkokhyants.svg?style=social&label=%20akopkokhyants)](https://twitter.com/akopkokhyants) to be notified about new releases. - [![Build Status](https://travis-ci.org/akserg/ng2-toasty.svg?branch=master)](https://travis-ci.org/akserg/ng2-toasty) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![Dependency Status](https://david-dm.org/akserg/ng2-toasty.svg)](https://david-dm.org/akserg/ng2-toasty) [![devDependency Status](https://david-dm.org/akserg/ng2-toasty/dev-status.svg)](https://david-dm.org/akserg/ng2-toasty#info=devDependencies) +Follow me [![twitter](https://img.shields.io/twitter/follow/akopkokhyants.svg?style=social&label=%20akopkokhyants)](https://twitter.com/akopkokhyants) to be notified about new releases. + ## Installation ```sh npm install ng2-toasty --save diff --git a/src/toasty.config.ts b/src/toasty.config.ts index 4195e70..6e8c6db 100644 --- a/src/toasty.config.ts +++ b/src/toasty.config.ts @@ -9,15 +9,20 @@ import {Injectable} from '@angular/core'; */ @Injectable() export class ToastyConfig { + // Maximum number of toasties to show at once limit:number = 5; + // Whether to show the 'X' icon to close the toast showClose:boolean = true; + // The window position where the toast pops up. Possible values // bottom-right, bottom-left, top-right, top-left, top-center, bottom-center position:string = 'bottom-right'; + // How long (in miliseconds) the toasty shows before it's removed. Set to false to disable. timeout:number = 5000; + // What theme to use. Possible values: // default, material or bootstrap theme:string = 'default';