-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
122 additions
and
100 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Ember from 'ember'; | ||
const { Component } = Ember; | ||
|
||
export default Component.extend({ | ||
classNames: ['md-toolbar-tools'] | ||
}); |
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,3 @@ | ||
import PaperToolbarTools from 'ember-paper/components/paper-toolbar-tools'; | ||
|
||
export default PaperToolbarTools; |
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,3 @@ | ||
{{yield (hash | ||
tools=(component "paper-toolbar-tools") | ||
)}} |
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,128 +1,125 @@ | ||
{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
{{#paper-toolbar-tools}} | ||
{{#paper-sidenav-toggle as |toggle|}} | ||
{{#paper-button onClick=(action "toggleMenu" target=toggle) iconButton=true}}{{paper-icon "menu"}}{{/paper-button}} | ||
{{/paper-sidenav-toggle}} | ||
<span class="md-breadcrumb-page">Toolbars</span> | ||
</div> | ||
{{/paper-toolbar-tools}} | ||
{{/paper-toolbar}} | ||
{{#paper-content class="md-padding"}} | ||
<div class="doc-content"> | ||
{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
{{#paper-button}}Example button{{/paper-button}} | ||
{{#paper-button}}Example button{{/paper-button}} | ||
</div> | ||
{{/paper-toolbar}} | ||
|
||
<p>"md-toolbar-tools" is a class that centers your elements in the toolbar.</p> | ||
|
||
|
||
{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
{{#paper-button}} | ||
{{paper-icon 'menu'}} | ||
{{#paper-toolbar-tools}} | ||
{{#paper-button iconButton=true}} | ||
{{paper-icon "menu"}} | ||
{{/paper-button}} | ||
<h2> | ||
<span>Toolbar with Icon Buttons</span> | ||
Toolbar with Icon Buttons | ||
</h2> | ||
<span flex></span> | ||
{{#paper-button}} | ||
{{paper-icon 'favorite'}} | ||
<span class="flex"></span> | ||
{{#paper-button iconButton=true}} | ||
{{paper-icon "favorite"}} | ||
{{/paper-button}} | ||
{{#paper-button}} | ||
{{paper-icon 'more-vert'}} | ||
{{#paper-button iconButton=true}} | ||
{{paper-icon "more_vert"}} | ||
{{/paper-button}} | ||
</div> | ||
{{/paper-toolbar-tools}} | ||
{{/paper-toolbar}} | ||
|
||
<br /> | ||
{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
|
||
{{#paper-toolbar as |toolbar|}} | ||
{{#toolbar.tools}} | ||
{{#paper-button}} | ||
Go Back | ||
{{/paper-button}} | ||
<h2> | ||
<span>Toolbar with Standard Buttons</span> | ||
</h2> | ||
<span flex></span> | ||
<h2>Toolbar with Standard Buttons</h2> | ||
<span class="flex"></span> | ||
{{#paper-button raised=true}} | ||
Learn More | ||
{{/paper-button}} | ||
{{#paper-button mini=true fab=true aria-label="Favorite"}} | ||
{{paper-icon 'favorite'}} | ||
{{#paper-button mini=true aria-label="Favorite"}} | ||
{{paper-icon "favorite"}} | ||
{{/paper-button}} | ||
</div> | ||
{{/toolbar.tools}} | ||
{{/paper-toolbar}} | ||
|
||
<br /> | ||
|
||
{{#paper-toolbar tall=true accent=true}} | ||
<h2 class="md-toolbar-tools"> | ||
<span>Toolbar: tall, accent</span> | ||
</h2> | ||
{{#paper-toolbar-tools}} | ||
<h2>Toolbar: tall=true, accent=true</h2> | ||
{{/paper-toolbar-tools}} | ||
{{/paper-toolbar}} | ||
|
||
<br /> | ||
{{#paper-toolbar tall=true class="md-warn md-hue-3"}} | ||
|
||
{{#paper-toolbar tall=true warn=true}} | ||
<span flex></span> | ||
<h2 class="md-toolbar-tools md-toolbar-tools-bottom"> | ||
<span class="md-flex">Toolbar: tall with actions pin to the bottom (md-warn md-hue-3)</span> | ||
</h2> | ||
{{#paper-toolbar-tools}} | ||
<h2>Toolbar: tall with actions pin to the bottom (tall=true warn=true)</h2> | ||
{{/paper-toolbar-tools}} | ||
{{/paper-toolbar}} | ||
|
||
|
||
<h3>Template</h3> | ||
{{#code-block language='handlebars'}} | ||
\{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
\{{#paper-button}}Example button\{{/paper-button}} | ||
\{{#paper-button}}Example button\{{/paper-button}} | ||
</div> | ||
|
||
\{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
\{{#paper-button}} | ||
\{{paper-icon 'menu'}} | ||
\{{/paper-button}} | ||
<h2> | ||
<span>Toolbar with Icon Buttons</span> | ||
</h2> | ||
<span flex></span> | ||
\{{#paper-button}} | ||
\{{paper-icon 'favorite'}} | ||
\{{/paper-button}} | ||
\{{#paper-button}} | ||
\{{paper-icon 'more-vert'}} | ||
\{{/paper-button}} | ||
</div> | ||
\{{/paper-toolbar}} | ||
|
||
\{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
\{{#paper-button}} | ||
Go Back | ||
\{{/paper-button}} | ||
<h2> | ||
<span>Toolbar with Standard Buttons</span> | ||
</h2> | ||
<span flex></span> | ||
\{{#paper-button raised=true}} | ||
Learn More | ||
\{{/paper-button}} | ||
\{{#paper-button mini=true fab=true aria-label="Favorite"}} | ||
\{{paper-icon 'favorite'}} | ||
\{{/paper-button}} | ||
</div> | ||
\{{/paper-toolbar}} | ||
|
||
\{{#paper-toolbar tall=true accent=true}} | ||
<h2 class="md-toolbar-tools"> | ||
<span>Toolbar: tall, accent</span> | ||
</h2> | ||
\{{/paper-toolbar}} | ||
\{{/paper-toolbar}} | ||
|
||
\{{#paper-toolbar tall=true class="md-warn md-hue-3"}} | ||
<span flex></span> | ||
<h2 class="md-toolbar-tools md-toolbar-tools-bottom"> | ||
<span class="md-flex">Toolbar: tall with actions pin to the bottom (md-warn md-hue-3)</span> | ||
{{#code-block language="handlebars"}} | ||
\{{#paper-toolbar}} | ||
\{{#paper-toolbar-tools}} | ||
\{{#paper-button iconButton=true}} | ||
\{{paper-icon "menu"}} | ||
\{{/paper-button}} | ||
<h2> | ||
Toolbar with Icon Buttons | ||
</h2> | ||
\{{/paper-toolbar}} | ||
{{/code-block}} | ||
<span class="flex"></span> | ||
\{{#paper-button iconButton=true}} | ||
\{{paper-icon "favorite"}} | ||
\{{/paper-button}} | ||
\{{#paper-button iconButton=true}} | ||
\{{paper-icon "more_vert"}} | ||
\{{/paper-button}} | ||
\{{/paper-toolbar-tools}} | ||
\{{/paper-toolbar}} | ||
|
||
<br /> | ||
|
||
\{{!-- using contextual components form --}} | ||
\{{#paper-toolbar as |toolbar|}} | ||
\{{#toolbar.tools}} | ||
\{{#paper-button}} | ||
Go Back | ||
\{{/paper-button}} | ||
<h2>Toolbar with Standard Buttons</h2> | ||
<span class="flex"></span> | ||
\{{#paper-button raised=true}} | ||
Learn More | ||
\{{/paper-button}} | ||
\{{#paper-button mini=true aria-label="Favorite"}} | ||
\{{paper-icon "favorite"}} | ||
\{{/paper-button}} | ||
\{{/toolbar.tools}} | ||
\{{/paper-toolbar}} | ||
|
||
<br /> | ||
|
||
\{{#paper-toolbar tall=true accent=true}} | ||
\{{#paper-toolbar-tools}} | ||
<h2>Toolbar: tall=true, accent=true</h2> | ||
\{{/paper-toolbar-tools}} | ||
\{{/paper-toolbar}} | ||
|
||
<br /> | ||
|
||
\{{#paper-toolbar tall=true warn=true}} | ||
<span class="flex"></span> | ||
\{{#paper-toolbar-tools}} | ||
<h2>Toolbar: tall with actions pin to the bottom (md-warn md-hue-3)</h2> | ||
\{{/paper-toolbar-tools}} | ||
\{{/paper-toolbar}} | ||
|
||
{{~/code-block}} | ||
|
||
</div> | ||
{{/paper-content}} |
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