-
-
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.
Merge pull request #253 from knownasilya/patch-1
Add `closeOnClick` to paper-sidenav
- Loading branch information
Showing
4 changed files
with
61 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,68 @@ | ||
{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
{{#paper-sidenav-toggle as |toggle|}} | ||
{{#paper-button target=toggle action="toggleMenu" icon-button=true}}{{paper-icon icon="menu"}}{{/paper-button}} | ||
{{/paper-sidenav-toggle}} | ||
<span class="md-breadcrumb-page">Sidenav</span> | ||
</div> | ||
<div class="md-toolbar-tools"> | ||
{{#paper-sidenav-toggle as |toggle|}} | ||
{{#paper-button target=toggle action="toggleMenu" icon-button=true}}{{paper-icon icon="menu"}}{{/paper-button}} | ||
{{/paper-sidenav-toggle}} | ||
<span class="md-breadcrumb-page">Sidenav</span> | ||
</div> | ||
{{/paper-toolbar}} | ||
|
||
{{#paper-content class="md-padding"}} | ||
<div class="doc-content"> | ||
<div class="doc-content"> | ||
<h3>Demo</h3> | ||
<p>Try to resize this webpage.</p> | ||
|
||
<h3>Demo</h3> | ||
<p>Try to resize this webpage.</p> | ||
<h3>Sidenav attributes</h3> | ||
|
||
<h3>Sidenav attributes</h3> | ||
<p> | ||
<strong>locked-open:</strong> You can chose when the sidenav should stay open, based on the screen size.<br /> | ||
Available sizes are: <code>sm, gt-sm, md, gt-md, lg, gt-lg</code> | ||
</p> | ||
|
||
<p><strong>locked-open:</strong> You chose can whenever the sidebar to stay open, based on the screen size. | ||
Available sizes are:<br /> | ||
<code>sm, gt-sm, md, gt-md, lg, gt-lg</code></p> | ||
<p> | ||
<strong>closeOnClick:</strong> An override for the sidenav closing if you click on the sidebar itself. Mainly | ||
for use-cases where you have forms or something similar in the sidenav.<br /> | ||
Defaults to <code>true</code>. | ||
</p> | ||
|
||
|
||
<h3>Template</h3> | ||
<h3>Template</h3> | ||
|
||
{{#code-block language='handlebars'}} | ||
\{{#paper-nav-container}} | ||
\{{#paper-sidenav class="md-sidenav-left md-whiteframe-z2" locked-open="gt-sm"}} | ||
\{{#paper-toolbar}} | ||
\{{#paper-sidenav class="md-sidenav-left md-whiteframe-z2" locked-open="gt-sm"}} | ||
\{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
<div class="logo"> | ||
<img src="ember-logo-white.png" height="30"/> <strong>Paper</strong> | ||
</div> | ||
<div class="logo"> | ||
<img src="ember-logo-white.png" height="30"/> | ||
<strong>Paper</strong> | ||
</div> | ||
</div> | ||
\{{/paper-toolbar}} | ||
\{{#paper-content}} | ||
\{{#paper-list}} | ||
\{{#paper-item action="transitionTo" param="index"}}Introduction\{{/paper-item}} | ||
\{{#paper-item action="transitionTo" param="index"}}Another link\{{/paper-item}} | ||
\{{/paper-list}} | ||
\{{/paper-content}} | ||
\{{/paper-sidenav}} | ||
|
||
<div layout="column" tabindex="-1" role="main" flex> | ||
\{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
\{{#paper-sidenav-toggle as |toggle|}} | ||
\{{#paper-button target=toggle action="toggleMenu" icon-button=true}}\{{paper-icon icon="menu"}}\{{/paper-button}} | ||
\{{/paper-sidenav-toggle}} | ||
<span class="md-breadcrumb-page">Title</span> | ||
</div> | ||
\{{/paper-toolbar}} | ||
\{{#paper-content class="md-padding"}} | ||
<p>My content</p> | ||
\{{/paper-content}} | ||
</div> | ||
\{{/paper-nav-container}}{{/code-block}} | ||
\{{/paper-toolbar}} | ||
|
||
\{{#paper-content}} | ||
\{{#paper-list}} | ||
\{{#paper-item action="transitionTo" param="index"}}Introduction\{{/paper-item}} | ||
\{{#paper-item action="transitionTo" param="index"}}Another link\{{/paper-item}} | ||
\{{/paper-list}} | ||
\{{/paper-content}} | ||
\{{/paper-sidenav}} | ||
|
||
<div layout="column" tabindex="-1" role="main" flex> | ||
\{{#paper-toolbar}} | ||
<div class="md-toolbar-tools"> | ||
\{{#paper-sidenav-toggle as |toggle|}} | ||
\{{#paper-button target=toggle action="toggleMenu" icon-button=true}}\{{paper-icon icon="menu"}}\{{/paper-button}} | ||
\{{/paper-sidenav-toggle}} | ||
<span class="md-breadcrumb-page">Title</span> | ||
</div> | ||
\{{/paper-toolbar}} | ||
|
||
</div> | ||
\{{#paper-content class="md-padding"}} | ||
<p>My content</p> | ||
\{{/paper-content}} | ||
</div> | ||
\{{/paper-nav-container}} | ||
{{/code-block}} | ||
</div> | ||
{{/paper-content}} | ||
|
||
|