| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
| 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
| 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
| 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
| 6 Code distributed by Google as part of the polymer project is also | |
| 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
| 8 --><!-- | |
| 9 `core-toolbar` is a horizontal bar containing items that can be used for | |
| 10 label, navigation, search and actions. The items place inside the | |
| 11 `core-toolbar` are projected into a `horizontal center layout` container inside
of | |
| 12 `core-toolbar`'s Shadow DOM. You can use flex attributes to control the items' | |
| 13 sizing. | |
| 14 | |
| 15 Example: | |
| 16 | |
| 17 <core-toolbar> | |
| 18 <core-icon-button icon="menu" on-tap="{{menuAction}}"></core-icon-button> | |
| 19 <div flex>Title</div> | |
| 20 <core-icon-button icon="more" on-tap="{{moreAction}}"></core-icon-button> | |
| 21 </core-toolbar> | |
| 22 | |
| 23 `core-toolbar` has a standard height, but can made be taller by setting `tall` | |
| 24 class on the `core-toolbar`. This will make the toolbar 3x the normal height. | |
| 25 | |
| 26 <core-toolbar class="tall"> | |
| 27 <core-icon-button icon="menu"></core-icon-button> | |
| 28 </core-toolbar> | |
| 29 | |
| 30 Apply `medium-tall` class to make the toolbar medium tall. This will make the | |
| 31 toolbar 2x the normal height. | |
| 32 | |
| 33 <core-toolbar class="medium-tall"> | |
| 34 <core-icon-button icon="menu"></core-icon-button> | |
| 35 </core-toolbar> | |
| 36 | |
| 37 When `tall`, items can pin to either the top (default), middle or bottom. Use | |
| 38 `middle` class for middle content and `bottom` class for bottom content. | |
| 39 | |
| 40 <core-toolbar class="tall"> | |
| 41 <core-icon-button icon="menu"></core-icon-button> | |
| 42 <div class="middle indent">Middle Title</div> | |
| 43 <div class="bottom indent">Bottom Title</div> | |
| 44 </core-toolbar> | |
| 45 | |
| 46 For `medium-tall` toolbar, the middle and bottom contents overlap and are | |
| 47 pinned to the bottom. But `middleJustify` and `bottomJustify` attributes are | |
| 48 still honored separately. | |
| 49 | |
| 50 To make an element completely fit at the bottom of the toolbar, use `fit` along | |
| 51 with `bottom`. | |
| 52 | |
| 53 <core-toolbar class="tall"> | |
| 54 <div id="progressBar" class="bottom fit"></div> | |
| 55 </core-toolbar> | |
| 56 | |
| 57 `core-toolbar` adapts to mobile/narrow layout when there is a `core-narrow` clas
s set | |
| 58 on itself or any of its ancestors. | |
| 59 | |
| 60 @group Polymer Core Elements | |
| 61 @element core-toolbar | |
| 62 @homepage github.io | |
| 63 --><html><head><link rel="import" href="../polymer/polymer.html"> | |
| 64 | |
| 65 </head><body><polymer-element name="core-toolbar" attributes="justify middleJust
ify bottomJustify" assetpath=""> | |
| 66 <template> | |
| 67 | |
| 68 <link rel="stylesheet" href="core-toolbar.css"> | |
| 69 | |
| 70 <div id="bottomBar" class="toolbar-tools" center="" horizontal="" layout=""> | |
| 71 <content select=".bottom"></content> | |
| 72 </div> | |
| 73 | |
| 74 <div id="middleBar" class="toolbar-tools" center="" horizontal="" layout=""> | |
| 75 <content select=".middle"></content> | |
| 76 </div> | |
| 77 | |
| 78 <div id="topBar" class="toolbar-tools" center="" horizontal="" layout=""> | |
| 79 <content></content> | |
| 80 </div> | |
| 81 | |
| 82 </template> | |
| 83 | |
| 84 </polymer-element> | |
| 85 <script charset="utf-8" src="core-toolbar-extracted.js"></script></body></html> | |
| OLD | NEW |