/* No Action */
Snackbar.show({ showAction: false, });
/* Action Text */
Snackbar.show({ actionText: 'Thanks!', });
/* Text Color */
Snackbar.show({ actionTextColor: '#ff0000', });
/* Click Callback */
Snackbar.show({
text: 'I have a custom callback when action button is clicked.',
width: '475px',
onActionClick: function(element) {
//Set opacity of element to 0 to close Snackbar
$(element).css('opacity', 0);
alert('Clicked Called!');
}
});