Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

updated options #50

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ <h2>Options</h2>
<pre class="well" style="display: block; margin: 20px 0;"><code>var options = {
content: "Some text", // text of the snackbar
style: "toast", // add a custom class to your snackbar
timeout: 1000 // time in milliseconds after the snackbar autohides, 0 is disabled
timeout: 1000, // time in milliseconds after the snackbar autohides, 0 is disabled
htmlAllowed: true, // allows HTML as content value
onClose: function(){ } // callback called when the snackbar gets closed.
}

$.snackbar(options);</code></pre>
Expand Down