You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After looking through the code it seems like the toasts are quite hard coded, apart from the text it displays and the duration (which matches the normal toast duration of long (1) and short (0)).
Here are some suggestions so that others can begin to use this feature in their apps:
A default TastyToast.show(text) call that shows a default toast.
Change the background color TastyToast.show(text, #color)
Pass in the duration in milliseconds, with a maximum bound
Either pass in an image or an array of images to display the icon or a gif: TastyToast.show(text, #color, #image), TastyToast.show(text, #color, #image[])
Just a few suggestions.
The text was updated successfully, but these errors were encountered:
UshalNaidoo
changed the title
Don't always show animation on the Toast
Make toasts customisable
Aug 10, 2016
After looking through the code it seems like the toasts are quite hard coded, apart from the text it displays and the duration (which matches the normal toast duration of long (1) and short (0)).
Here are some suggestions so that others can begin to use this feature in their apps:
TastyToast.show(text)
call that shows a default toast.TastyToast.show(text, #color)
TastyToast.show(text, #color, #image)
,TastyToast.show(text, #color, #image[])
Just a few suggestions.
The text was updated successfully, but these errors were encountered: