Skip to content

Commit

Permalink
Updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Fax committed Feb 7, 2014
1 parent 551a865 commit 8c0b2ee
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions docs/notify.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,40 @@ <h1>
</script>
</div>
<pre class="prettyprint linenums">
//with parameters sets
// By setting parameters
$('#notify_btn_1').on('click', function(){
$.Notify({
content: "Metro UI CSS is awesome!!!"
var not = $.Notify({
caption: "Try it"
content: "Metro UI CSS is awesome!!!",
timeout: 10000 // 10 seconds
});
});

// alternate with default parameters
// Alternatively with default parameters
$('#notify_btn_1').on('click', function(){
$.Notify.show("Metro UI CSS is awesome!!!");
$.Notify.show("Metro UI CSS is awesome!!!", "Info...");
var not2 = $.Notify.show("Metro UI CSS is awesome!!!");
var not3 = $.Notify.show("Metro UI CSS is awesome!!!", "Info...");
});

// Cancel timeout
not.clear();

// Reset timeout
not.close(1000);

// Close the notification immediately
not.close();

// Close all notifications and open a new one
// Do not close notifications which have already been closed
not2.closeAll().init({caption:"Done", content:"Finally"});
</pre>
<h3>Parameters:</h3>
<table class="table border striped">
<tr>
<td>icon</td>
<td></td>
<td></td>
<td>Not yet implemented</td>
</tr>
<tr>
<td>caption</td>
Expand Down Expand Up @@ -118,7 +133,7 @@ <h3>Parameters:</h3>
<tr>
<td>timeout</td>
<td>int</td>
<td>milliseconds to hide notify, default 3000</td>
<td>milliseconds to hide notify, default 3000, null to disable timeout</td>
</tr>
</table>

Expand Down

0 comments on commit 8c0b2ee

Please sign in to comment.