1.1.3 • Published 4 years ago

owp.feedback v1.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

OpenWebProject Feedback

Feedback notifications

Try it

https://andreasarvidsson.github.io/OpenWebProject-Feedback/

Installation

npm install owp.feedback --save

Usage

import Feedback from "owp.feedback";

//Show notification
Feedback.notify("Hello world");

//Or with options
Feedback.notify("Hello altered world", {
    type: "info",
    sticky:false,   
    duration: 1000
});

//Each type has a predefined notification function
Feedback.error("Hello horrible world");
Feedback.success("Hello happy world");

Options

  • type: Color/style of the notification
    • Default: "info"
    • "info", "error", "success", "warn", "grimace", "neutral"
  • sticky: If true the notification will stay until manually closed
    • Default: false
  • duration: Duration in milliseconds until notification closes
    • Defualt: 3000
1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago