mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
Toast 2.5.0 duration change
The plugin now supports an arbitrary number of milliseconds for `duration`
This commit is contained in:
parent
9e6293a8fb
commit
e437059626
@ -34,7 +34,7 @@ export class Toast {
|
||||
* Show a native toast for the given duration at the specified position.
|
||||
*
|
||||
* @param {string} message The message to display.
|
||||
* @param {string} duration Duration to show the toast, either 'short' or 'long'.
|
||||
* @param {string} duration Duration to show the toast, either 'short', 'long' or any number of milliseconds: '1500'.
|
||||
* @param {string} position Where to position the toast, either 'top', 'center', or 'bottom'.
|
||||
* @return {Observable} Returns an Observable that notifies first on success and then when tapped, rejects on error.
|
||||
*/
|
||||
@ -60,7 +60,7 @@ export class Toast {
|
||||
*
|
||||
* @param {Object} options Options for showing a toast. Available options:
|
||||
* message The message to display.
|
||||
* duration Duration to show the toast, either 'short' or 'long'.
|
||||
* duration Duration to show the toast, either 'short', 'long' or any number of milliseconds: '1500'.
|
||||
* position Where to position the toast, either 'top', 'center', or 'bottom'.
|
||||
* addPixelsY Offset in pixels to move the toast up or down from its specified position.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user