|
27 | 27 | </core-scaffold>
|
28 | 28 |
|
29 | 29 | Use `mode` to control the header and scrolling behavior of `core-header-panel`
|
30 |
| -and `responsiveWidth` to change the layout of the scaffold. |
| 30 | +and `responsiveWidth` to change the layout of the scaffold. Use 'disableSwipe' |
| 31 | +to disable swipe-to-open on toolbar. |
31 | 32 |
|
32 |
| -To have the content fits to the main area, use `fit` attribute. |
| 33 | +Use `rightDrawer` to move position of folding toolbar to the right instead of |
| 34 | +left (default). This will also position content to the left of the menu button |
| 35 | +instead of the right. You can use `flex` within your `tool` content to push the menu |
| 36 | +button to the far right: |
| 37 | +
|
| 38 | + <core-scaffold rightDrawer> |
| 39 | + <div tool flex >Title</div> |
| 40 | + </core-scaffold> |
| 41 | + |
| 42 | +You may also add `middle` or `bottom` classes to your `tool` content when using tall |
| 43 | +modes to adjust vertical content positioning in the core-toolbar (e.g. when using |
| 44 | +mode="waterfall-tall"): |
| 45 | +
|
| 46 | + <core-scaffold rightDrawer mode="waterfall-tall"> |
| 47 | + <div tool flex >Title</div> |
| 48 | + <div tool horizontal layout flex center-justified class="middle">Title-middle</div> |
| 49 | + <div tool horizontal layout flex end-justified class="bottom">Title-bottom</div> |
| 50 | + </core-scaffold> |
| 51 | +
|
| 52 | +To have the content fit to the main area, use `fit` attribute. |
33 | 53 |
|
34 | 54 | <core-scaffold>
|
35 | 55 | <core-header-panel navigation flex mode="seamed">
|
|
90 | 110 | <core-header-panel id="headerPanel" main mode="{{mode}}">
|
91 | 111 |
|
92 | 112 | <core-toolbar>
|
93 |
| - <core-icon-button id="menuButton" icon="menu" on-tap="{{togglePanel}}"></core-icon-button> |
| 113 | + <template if="{{!rightDrawer}}"> |
| 114 | + <core-icon-button id="menuButton" icon="menu" on-tap="{{togglePanel}}"></core-icon-button> |
| 115 | + </template> |
94 | 116 | <content select="[tool]"></content>
|
| 117 | + <template if="{{rightDrawer}}"> |
| 118 | + <core-icon-button id="menuButton" icon="menu" on-tap="{{togglePanel}}"></core-icon-button> |
| 119 | + </template> |
95 | 120 | </core-toolbar>
|
96 | 121 |
|
97 | 122 | <content select="*"></content>
|
|
146 | 171 | responsiveWidth: '600px',
|
147 | 172 |
|
148 | 173 | /**
|
149 |
| - * If true, position the drawer to the right. |
| 174 | + * If true, position the drawer to the right. Also place menu icon to |
| 175 | + * the right of the content instead of left. |
150 | 176 | *
|
151 | 177 | * @attribute rightDrawer
|
152 | 178 | * @type boolean
|
|
0 commit comments