Directory

paper-toolbar - Vaadin Add-on Directory

A Material Design toolbar/appbar paper-toolbar - Vaadin Add-on Directory
[![Published on NPM](https://img.shields.io/npm/v/@polymer/paper-toolbar.svg)](https://www.npmjs.com/package/@polymer/paper-toolbar) [![Build status](https://travis-ci.org/PolymerElements/paper-toolbar.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-toolbar) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://webcomponents.org/element/@polymer/paper-toolbar) ## <paper-toolbar> **This element has been deprecated in favor of [app-layout](https://github.com/PolymerElements/app-layout).** `paper-toolbar` is a horizontal bar containing items that can be used for label, navigation, search and actions. The items placed inside the `paper-toolbar` are projected into a `class="horizontal center layout"` container inside of `paper-toolbar`'s Shadow DOM. You can use flex attributes to control the items' sizing. Example: ```html
Title
``` `paper-toolbar` has a standard height, but can made be taller by setting `tall` class on the `paper-toolbar`. This will make the toolbar 3x the normal height. ```html ``` Apply `medium-tall` class to make the toolbar medium tall. This will make the toolbar 2x the normal height. ```html ``` When `tall`, items can pin to either the top (default), middle or bottom. Use `middle` slot for middle content and `bottom` slot for bottom content. ```html
Middle Title
Bottom Title
``` For `medium-tall` toolbar, the middle and bottom contents overlap and are pinned to the bottom. But `middleJustify` and `bottomJustify` attributes are still honored separately. To make an element completely fit at the bottom of the toolbar, use `fit` along with `bottom`. ```html
``` When inside a `paper-header-panel` element with `mode="waterfall-tall"`, the class `.animate` is toggled to animate the height change in the toolbar. ### Styling The following custom properties and mixins are available for styling: Custom property | Description | Default ----------------|-------------|---------- `--paper-toolbar-title` | Mixin applied to the title of the toolbar | `{}` `--paper-toolbar-background` | Toolbar background color | `--primary-color` `--paper-toolbar-color` | Toolbar foreground color | `--dark-theme-text-color` `--paper-toolbar-height` | Custom height for toolbar | `64px` `--paper-toolbar-sm-height` | Custom height for small screen toolbar | `56px` `--paper-toolbar` | Mixin applied to the toolbar | `{}` `--paper-toolbar-content` | Mixin applied to the content section of the toolbar | `{}` `--paper-toolbar-medium` | Mixin applied to medium height toolbar | `{}` `--paper-toolbar-tall` | Mixin applied to tall height toolbar | `{}` `--paper-toolbar-transition` | Transition applied to the `.animate` class | `height 0.18s ease-in` ### Accessibility `` has `role="toolbar"` by default. Any elements with the class `title` will be used as the label of the toolbar via `aria-labelledby`. See: [Documentation](https://www.webcomponents.org/element/@polymer/paper-toolbar), [Demo](https://www.webcomponents.org/element/@polymer/paper-toolbar/demo/demo/index.html). ## Usage ### Installation ``` npm install --save @polymer/paper-toolbar ``` ### In an html file ```html
Title
``` ### In a Polymer 3 element ```js import {PolymerElement, html} from '@polymer/polymer'; import '@polymer/paper-toolbar/paper-toolbar.js'; class SampleElement extends PolymerElement { static get template() { return html`
Title
`; } } customElements.define('sample-element', SampleElement); ``` ## Contributing If you want to send a PR to this element, here are the instructions for running the tests and demo locally: ### Installation ```sh git clone https://github.com/PolymerElements/paper-toolbar cd paper-toolbar npm install npm install -g polymer-cli ``` ### Running the demo locally ```sh polymer serve --npm open http://127.0.0.1:/demo/ ``` ### Running the tests ```sh polymer test --npm ```
License
View on NPM
View on GitHub

paper-toolbar version 1.0.0
### Dependencies * paper-styles#PolymerElements/paper-styles#^1.0.0 * polymer#Polymer/polymer#^1.0.0

paper-toolbar version 1.0.1
### Dependencies * paper-styles#PolymerElements/paper-styles#^1.0.0 * polymer#Polymer/polymer#^1.0.0

paper-toolbar version 1.0.2
### Dependencies * paper-styles#PolymerElements/paper-styles#^1.0.0 * polymer#Polymer/polymer#^1.0.0

paper-toolbar version 1.0.3
### Dependencies * paper-styles#PolymerElements/paper-styles#^1.0.0 * polymer#Polymer/polymer#^1.0.0

paper-toolbar version 1.0.4
### Dependencies * paper-styles#PolymerElements/paper-styles#^1.0.0 * polymer#Polymer/polymer#^1.0.0

paper-toolbar version 1.1.0
### Dependencies * paper-styles#PolymerElements/paper-styles#^1.0.0 * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * polymer#Polymer/polymer#^1.1.0

paper-toolbar version 1.1.1
### Dependencies * paper-styles#PolymerElements/paper-styles#^1.0.0 * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * polymer#Polymer/polymer#^1.2.0

paper-toolbar version 1.1.2
### Dependencies * paper-styles#PolymerElements/paper-styles#^1.0.0 * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * polymer#Polymer/polymer#^1.2.0

paper-toolbar version 1.1.3
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.1.0 * polymer#Polymer/polymer#^1.2.0

paper-toolbar version 1.1.4
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.1.0 * polymer#Polymer/polymer#^1.2.0

paper-toolbar version 0.0.1
### Dependencies * @polymer/iron-flex-layout#^0.0.1 * @polymer/paper-styles#^0.0.1 * @polymer/polymer#^1.2.5-npm-test.2

paper-toolbar version 0.0.3
### Dependencies * @polymer/iron-flex-layout#^0.0.3 * @polymer/paper-styles#^0.0.3 * @polymer/polymer#^1.2.5-npm-test.2

paper-toolbar version 1.1.5
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.1.0 * polymer#Polymer/polymer#^1.2.0

paper-toolbar version 1.1.6
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.1.0 * polymer#Polymer/polymer#^1.2.0

paper-toolbar version 1.1.7
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.1.0 * polymer#Polymer/polymer#^1.2.0

paper-toolbar version 2.0.0
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#1 - 2 * paper-styles#PolymerElements/paper-styles#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-toolbar version 3.0.0-pre.1
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.1 * @polymer/paper-styles#^3.0.0-pre.1 * @polymer/polymer#^3.0.0-pre.1

paper-toolbar version 3.0.0-pre.2
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.1 * @polymer/paper-styles#^3.0.0-pre.1 * @polymer/polymer#^3.0.0-pre.1

paper-toolbar version 3.0.0-pre.3
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.3 * @polymer/paper-styles#^3.0.0-pre.3 * @polymer/polymer#^3.0.0-pre.3

paper-toolbar version 3.0.0-pre.4
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.4 * @polymer/paper-styles#^3.0.0-pre.4 * @polymer/polymer#^3.0.0-pre.4

paper-toolbar version 3.0.0-pre.6
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.6 * @polymer/paper-styles#^3.0.0-pre.6 * @polymer/polymer#^3.0.0-pre.6

paper-toolbar version 3.0.0-pre.7
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.7 * @polymer/paper-styles#^3.0.0-pre.7 * @polymer/polymer#^3.0.0-pre.7

paper-toolbar version 3.0.0-pre.8
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.7 * @polymer/paper-styles#^3.0.0-pre.7 * @polymer/polymer#^3.0.0-pre.7

paper-toolbar version 2.1.0
### Dependencies * iron-flex-layout#PolymerElements/iron-flex-layout#1 - 2 * paper-styles#PolymerElements/paper-styles#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-toolbar version 3.0.0-pre.10
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.10 * @polymer/paper-styles#^3.0.0-pre.10 * @polymer/polymer#^3.0.0-pre.10

paper-toolbar version 3.0.0-pre.11
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.10 * @polymer/paper-styles#^3.0.0-pre.10 * @polymer/polymer#^3.0.0-pre.10

paper-toolbar version 3.0.0-pre.12
### Dependencies * @polymer/iron-flex-layout#3.0.0-pre.12 * @polymer/paper-styles#3.0.0-pre.12 * @polymer/polymer#3.0.0-pre.12

paper-toolbar version 3.0.0-pre.13
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.13 * @polymer/paper-styles#^3.0.0-pre.13 * @polymer/polymer#^3.0.0-pre.13

paper-toolbar version 3.0.0-pre.14
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.14 * @polymer/paper-styles#^3.0.0-pre.14 * @polymer/polymer#^3.0.0-pre.13

paper-toolbar version 3.0.0-pre.15
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.15 * @polymer/paper-styles#^3.0.0-pre.15 * @polymer/polymer#^3.0.0-pre.13

paper-toolbar version 3.0.0-pre.16
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.16 * @polymer/paper-styles#^3.0.0-pre.16 * @polymer/polymer#^3.0.0-pre.13

paper-toolbar version 3.0.0-pre.17
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.17 * @polymer/paper-styles#^3.0.0-pre.17 * @polymer/polymer#^3.0.0-pre.13

paper-toolbar version 3.0.0-pre.18
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.18 * @polymer/paper-styles#^3.0.0-pre.18 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.0-pre.19
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.19 * @polymer/paper-styles#^3.0.0-pre.19 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.0-pre.20
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.20 * @polymer/paper-styles#^3.0.0-pre.20 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.0-pre.21
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.21 * @polymer/paper-styles#^3.0.0-pre.21 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.0-pre.22
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.20 * @polymer/paper-styles#^3.0.0-pre.20 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.0-pre.23
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.22 * @polymer/paper-styles#^3.0.0-pre.22 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.0-pre.24
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.22 * @polymer/paper-styles#^3.0.0-pre.22 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.0-pre.25
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.24 * @polymer/paper-styles#^3.0.0-pre.24 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.0-pre.26
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.25 * @polymer/paper-styles#^3.0.0-pre.25 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.0
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.26 * @polymer/paper-styles#^3.0.0-pre.26 * @polymer/polymer#^3.0.0

paper-toolbar version 3.0.1
### Dependencies * @polymer/iron-flex-layout#^3.0.0-pre.26 * @polymer/paper-styles#^3.0.0-pre.26 * @polymer/polymer#^3.0.0