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.github.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/CONTRIBUTORS.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/PATENTS.txt
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'
18 <core-icon-button icon="menu" on-tap="{{menuAction}}"></core-icon-button>
20 <core-icon-button icon="more" on-tap="{{moreAction}}"></core-icon-button>
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.
26 <core-toolbar class="tall">
27 <core-icon-button icon="menu"></core-icon-button>
30 Apply `medium-tall` class to make the toolbar medium tall. This will make the
31 toolbar 2x the normal height.
33 <core-toolbar class="medium-tall">
34 <core-icon-button icon="menu"></core-icon-button>
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.
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>
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.
50 To make an element completely fit at the bottom of the toolbar, use `fit` along
53 <core-toolbar class="tall">
54 <div id="progressBar" class="bottom fit"></div>
57 `core-toolbar` adapts to mobile/narrow layout when there is a `core-narrow` class set
58 on itself or any of its ancestors.
60 @group Polymer Core Elements
63 --><html><head><link rel=
"import" href=
"../polymer/polymer.html">
65 </head><body><polymer-element name=
"core-toolbar" attributes=
"justify middleJustify bottomJustify" assetpath=
"">
68 <link rel=
"stylesheet" href=
"core-toolbar.css">
70 <div id=
"bottomBar" class=
"toolbar-tools" center=
"" horizontal=
"" layout=
"">
71 <content select=
".bottom"></content>
74 <div id=
"middleBar" class=
"toolbar-tools" center=
"" horizontal=
"" layout=
"">
75 <content select=
".middle"></content>
78 <div id=
"topBar" class=
"toolbar-tools" center=
"" horizontal=
"" layout=
"">
85 <script src=
"core-toolbar-extracted.js"></script></body></html>