Custom Styling $cordovaToast

Hey,

Does anyone know if you can custom style $cordovaToast? The Github documentation suggests you can style this with certain attributes, but the ngCordova documentation suggests you can only place positioning.

How could I use it as a the original cordova plug in? What needs to be injected into the controller?
Thanks.

1 Like

@Nicksmith1 You probably found this already, but yes, you can, by doing something like:

    $cordovaToast.showWithOptions({
      message: 'Pulse nuevamente para salir',
      duration: 'short',
      position: 'bottom',
      styling: {
        backgroundColor: '#E51937',
        borderRadius: 30, // a bit less than default, 0 means a square Toast
        alpha: 180, // 0-255, 0 being fully transparent
        padding: {
          bottom: 30
        }
      }
    })