This repository has been archived by the owner on Jun 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work on making iron-selector DDAU. ðŸ¤
- Loading branch information
Showing
4 changed files
with
109 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Component.extend({ | ||
// BEGIN-SNIPPET block-usage | ||
items: [ 'Dog', 'Cat', 'Elephant', 'Giraffe' ], | ||
blockSelected: 'Cat' | ||
blockSelected: 'Cat', | ||
// END-SNIPPET block-usage | ||
|
||
selectedAnimal: 2 | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
tests/dummy/app/templates/components/snippets/paper-toggle-button.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
{{#paper-toggle-button checked=toggled}} | ||
{{#paper-toggle-button update=(action (mut toggled))}} | ||
Toggle | ||
{{/paper-toggle-button}} | ||
|
||
<p> | ||
Toggled: {{toggled}} | ||
</p> | ||
|
||
<p>We could also use a traditional two-way binding.</p> | ||
|
||
{{#paper-toggle-button checked=onoff}} | ||
On/Off | ||
{{/paper-toggle-button}} | ||
|
||
<p> | ||
On: {{onoff}} | ||
</p> |