Skip to content

chemerisuk/cordova-plugin-material-snackbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-material-snackbar
NPM version NPM downloads

Cordova plugin for Material design Snackbars

Installation

cordova plugin add cordova-plugin-material-snackbar --save

Supported Platforms

  • iOS (8+)
  • Android

Methods

setAction(label, color, callback)

Sets action for the next slackbar.

cordova.plugins.material.Snackbar.setAction("Done", "#333333" function() {
    console.log("Action was clicked");
});

show(message, duration)

Display slackbar on the buttom.

cordova.plugins.material.Snackbar.show("Hello world!", 5000);

About

Cordova plugin for Material design Snackbars

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published