ionic-toast icon indicating copy to clipboard operation
ionic-toast copied to clipboard

Change background color programatically?

Open fgagneten opened this issue 8 years ago • 2 comments

Well may be you can add change the background color of the toast programmatically. Because if I want to differentiate into a success toast or error toast I can't, because always the toast have one background color. Thanks!

fgagneten avatar Dec 04 '16 14:12 fgagneten

Hi fgagneten,

I just wanted to point out that 12 days ago this feature has been released, it wont work tho... since the dist files are outdated.

However you can always build those files yourself:

  1. Clone this repo into a clean directory (just to make sure nothing ruins your current project)
  2. Open terminal head to the root of the ionic-toast folder and do bower install
  3. Once bower is completed do npm install
  4. Once npm is completed do gulp make-bundle
  5. Finally browse the /dist folder in the ionic-toast folder and copy the ionic-toast.bundle.min.js into your project's lib/ionic-toast/dist folder.

Happy Coding! Cheers

amunoz20 avatar Feb 02 '17 01:02 amunoz20

https://github.com/rajeshwarpatlolla/ionic-toast/pull/32

lcrpt avatar Feb 15 '17 15:02 lcrpt