API Reference

md-toolbar is used to place a toolbar in your app.

Toolbars are usually used above a content area to display the title of the current page, and show relevant action buttons for that page.

You can change the height of the toolbar by adding either the md-medium-tall or md-tall class to the toolbar.

Usage

My App's Title Right Bar Button
Hello!

Attributes

Parameter Type Description
md-scroll-shrink boolean boolean

Whether the header should shrink away as the user scrolls down, and reveal itself as the user scrolls up. Note (1): for scrollShrink to work, the toolbar must be a sibling of a md-content element, placed before it. See the scroll shrink demo. Note (2): The md-scroll-shrink attribute is only parsed on component initialization, it does not watch for scope changes.

md-shrink-speed-factor number number

How much to change the speed of the toolbar's shrinking by. For example, if 0.25 is given then the toolbar will shrink at one fourth the rate at which the user scrolls down. Default 0.5.