app-toasts

WebJar for app-toasts

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.jifalops
ArtifactId

ArtifactId

app-toasts
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

app-toasts
WebJar for app-toasts
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jifalops/app-toasts

Download app-toasts

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.jifalops/app-toasts/ -->
<dependency>
    <groupId>org.webjars.bowergithub.jifalops</groupId>
    <artifactId>app-toasts</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.jifalops/app-toasts/
implementation 'org.webjars.bowergithub.jifalops:app-toasts:0.4.0'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.jifalops/app-toasts/
implementation ("org.webjars.bowergithub.jifalops:app-toasts:0.4.0")
'org.webjars.bowergithub.jifalops:app-toasts:jar:0.4.0'
<dependency org="org.webjars.bowergithub.jifalops" name="app-toasts" rev="0.4.0">
  <artifact name="app-toasts" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.jifalops', module='app-toasts', version='0.4.0')
)
libraryDependencies += "org.webjars.bowergithub.jifalops" % "app-toasts" % "0.4.0"
[org.webjars.bowergithub.jifalops/app-toasts "0.4.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.jifalops : app-toast jar [0.3.0,0.4)

Project Modules

There are no modules declared in this project.

Published on Vaadin  Directory Stars on vaadin.com/directory Published on webcomponents.org

app-toasts

Success, error, info, and warning theme presets for app-toast.

Installation

bower i -S app-toasts      # Polymer 2.0 hybrid (1.x compatible)
bower i -S app-toasts#0.3  # Polymer 1.x based

Usage

  • Drop app-toasts in and call one of the show() methods.
  • Or use app-toast directly.

Demo

<app-toasts id="toasts"></app-toasts>
<app-toasts id="toasts2" intense></app-toasts>
<input id="text" placeholder="text" value="text"/><br/>
<input id="duration" placeholder="duration (ms)" value="3000"/><br/>
<input id="actionText" placeholder="action button text" value="action"/><br/>
<label><input id="showCancel" type="checkbox"/>Show cancel</label><br/>
<label><input id="disableSwipe" type="checkbox"/>Disable swipe</label><br/>
<label><input id="fitBottom" type="checkbox"/>Fit to bottom</label><br/>
<label><input id="intense" type="checkbox"/>Intense coloring</label><br/><br/>
<button onclick="showSuccessToast()">Success</button>
<button onclick="showInfoToast()">Info</button>
<button onclick="showWarningToast()">Warning</button>
<button onclick="showErrorToast()">Error</button>
<button onclick="showDefaultToast()">Default</button>
<button onclick="closeToast()">Close</button><br/>
Last Event: <span id="feedback"></span>

Full demo: webcomponents.org | github.

API: webcomponents.org

Contributing

  1. Fork it on Github.
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

MIT

Versions

Version
0.4.0