Sha256: 4ca1c4a91e26b9cb6a737becce3f18f4cb1ad5843edca901c2371f19fc6af7a7
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
<button id="demo-show-toast" class="mdl-button mdl-js-button mdl-button--raised" type="button">Show Toast</button> <div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar"> <div class="mdl-snackbar__text"></div> <button class="mdl-snackbar__action" type="button"></button> </div> <script> (function() { 'use strict'; window['counter'] = 0; var snackbarContainer = document.querySelector('#demo-toast-example'); var showToastButton = document.querySelector('#demo-show-toast'); showToastButton.addEventListener('click', function() { 'use strict'; var data = {message: 'Example Message # ' + ++counter}; snackbarContainer.MaterialSnackbar.showSnackbar(data); }); }()); </script>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
cortex-0.1.3 | spec/dummy/node_modules/material-design-lite/src/snackbar/snippets/toast.html |
material-rails-0.1.0 | node_modules/material-design-lite/src/snackbar/snippets/toast.html |