Skip to content

Commit

Permalink
#1 Improved the demos.
Browse files Browse the repository at this point in the history
  • Loading branch information
nadnoslen committed Mar 4, 2017
1 parent 6d52740 commit 4101d3b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"ember-export-application-global": "^1.0.5",
"ember-load-initializers": "^0.5.1",
"ember-resolver": "^2.0.3",
"ember-route-action-helper": "2.0.2",
"loader.js": "^4.0.10"
},
"keywords": [
Expand Down
8 changes: 7 additions & 1 deletion tests/dummy/app/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import Ember from 'ember';

export default Ember.Route.extend({});
export default Ember.Route.extend({
actions: {
submit() {
window.alert('The form was submitted.');
}
}
});
31 changes: 26 additions & 5 deletions tests/dummy/app/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,33 @@
<fieldset>
<legend>Escape Press Clears</legend>
<div class="form-group">
<label for="js-escape-key-clears" class="control-label"><kbd>Escape</kbd> Press Clears</label>
<label for="js-escape-key-clears" class="control-label">
<kbd>ESCAPE</kbd> Press Clears
</label>
{{input-text class="form-control" id="js-escape-key-clears" placeholder="Escape Press Clears"
value="Press the escape key to clear the text..."}}
<p class="help-block">

</p>
value="Focus on this textbox and then press the escape key to clear the text..."}}
<div class="help-block">
<pre>\{{input-text class="form-control" id="js-escape-key-clears"
placeholder="..."
value="Focus on this textbox and then press the escape key to clear the text..."}}</pre>
</div>
</div>
</fieldset>
{{!--
<fieldset>
<legend>Ctrl+Enter (or Return) Submits Form</legend>
<form class="form" {{action (route-action "submit") on="submit"}}>
<div class="form-group">
<label for="js-ctrl-enter-submits" class="control-label">
<kbd>CTRL</kbd>+<kbd>ENTER</kbd> Submits Form
</label>
{{input-text class="form-control" id="js-ctrl-enter-submits"
placeholder="Focus on this textbox and press CTRL+ENTER"}}
<div class="help-block">
<pre>\</pre>
</div>
</div>
</form>
</fieldset>
--}}
</section>

0 comments on commit 4101d3b

Please sign in to comment.