Skip to content

Commit

Permalink
Updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
nakupanda committed Feb 11, 2014
1 parent 3a0401c commit d3dec0d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ <h3>Manipulating Buttons</h3>
<h3>Button Hotkey</h3>
<p>
Try to press the keys that have been associated with buttons below. <br />
Please note that the <strong>last button</strong> is disabled so nothing is going to happen when pressing its hotkey.
The <strong>last button</strong> is disabled so nothing is going to happen when pressing its hotkey. <br />
Please note that if there are some components that require keyboard operations in your dialog, conflicts may occur, you can try next example.
</p>
<div class="source-code runnable">
<!--
Expand Down Expand Up @@ -206,6 +207,25 @@ <h3>Button Hotkey</h3>
});
-->
</div>

<h3>Keys Conflicts</h3>
<p>Try to avoid doing similar in your code.</p>
<div class="source-code runnable">
<!--
BootstrapDialog.show({
title: 'Button Hotkey',
message: $('<textarea class="form-control" placeholder="Try to input multiple lines here..."></textarea>'),
buttons: [{
label: '(Enter) Button A',
cssClass: 'btn-primary',
hotkey: 13, // Enter.
action: function() {
alert('You pressed Enter.');
}
}]
});
-->
</div>

<h3>Creating dialog instances</h3>
<p>BootstrapDialog.show(...) is just a shortcut method, if you need dialog instances, use 'new'.</p>
Expand Down

0 comments on commit d3dec0d

Please sign in to comment.