Cordova plugin for Material design Snackbars
cordova plugin add cordova-plugin-material-snackbar --save
- iOS (8+)
- Android
Sets action for the next slackbar.
cordova.plugins.material.Snackbar.setAction("Done", "#333333" function() {
console.log("Action was clicked");
});
Display slackbar on the buttom.
cordova.plugins.material.Snackbar.show("Hello world!", 5000);