-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
148 additions
and
9 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
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div>Map Details</div> | ||
<div>Legends and symbols</div> |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Ember from 'ember' | ||
const { | ||
Controller | ||
} = Ember | ||
|
||
export default Controller.extend({ | ||
sentences: ['I\'m loooooooooooooggggg content'], | ||
isOpen1: false, | ||
isOpen2: false, | ||
actions: { | ||
onToggle1 () { | ||
this.toggleProperty('isOpen1') | ||
}, | ||
onToggle2 () { | ||
this.toggleProperty('isOpen2') | ||
} | ||
} | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{{!-- BEGIN-SNIPPET label-api }} | ||
{{frost-sidebar | ||
... | ||
class='<class name>' | ||
isOpen=<true/false> | ||
content=(component '<component name>') | ||
onToggle=<action> | ||
label=(component '<component name>') // or string e.g. 'foo' | ||
... | ||
}} | ||
{{ END-SNIPPET --}} | ||
|
||
<div class='addon-demo-api'> | ||
<div class='addon-demo-title'> | ||
Notes | ||
</div> | ||
<div class='addon-demo-notes'> | ||
<p> | ||
Pass in a string or component to the label prop to show beside the sidebar button when it is collapsed. | ||
</p> | ||
</div> | ||
<div class='addon-demo-title'> | ||
API | ||
</div> | ||
<div class='addon-demo-snippet'> | ||
{{code-snippet name='label-api.hbs'}} | ||
</div> | ||
</div> | ||
<div class='addon-demo-live'> | ||
<div class='addon-demo-title'> | ||
Live demo | ||
</div> | ||
<div class='addon-demo-snippet'> | ||
<i>Label component</i> | ||
{{code-snippet name='label-component-frost-sidebar.hbs'}} | ||
</div> | ||
<div class='addon-demo-component'> | ||
{{! BEGIN-SNIPPET label-component-frost-sidebar }} | ||
{{frost-sidebar | ||
content=(component 'simple-content' | ||
sentences=sentences) | ||
onToggle=(action 'onToggle1') | ||
isOpen=isOpen1 | ||
label=(component 'map-label') | ||
}} | ||
{{! END-SNIPPET }} | ||
</div> | ||
<div class='addon-demo-snippet'> | ||
<i>String label</i> | ||
{{code-snippet name='string-label-frost-sidebar.hbs'}} | ||
</div> | ||
<div class='addon-demo-component'> | ||
{{! BEGIN-SNIPPET string-label-frost-sidebar }} | ||
{{frost-sidebar | ||
content=(component 'simple-content' | ||
sentences=sentences) | ||
onToggle=(action 'onToggle2') | ||
isOpen=isOpen2 | ||
label='Map Details' | ||
}} | ||
{{! END-SNIPPET }} | ||
</div> | ||
</div> |
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