Merge pull request #67 from EddyVerbruggen/toast

Toast 2.5.0 duration change
This commit is contained in:
Ibrahim Hadeed 2016-03-17 16:47:11 -04:00
commit 30e5119438

View File

@ -34,7 +34,7 @@ export class Toast {
* Show a native toast for the given duration at the specified position. * Show a native toast for the given duration at the specified position.
* *
* @param {string} message The message to display. * @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'. * @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. * @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: * @param {Object} options Options for showing a toast. Available options:
* message The message to display. * 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'. * 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. * addPixelsY Offset in pixels to move the toast up or down from its specified position.
* *