Class: SC.ToolbarView


Extends SC.View.

SC.ToolbarView is a simple horizontal view that has been styled like a toolbar and can be easily anchored at the top or bottom of a parent view.

To anchor to the top of the parent view, set anchorLocation to SC.ANCHOR_TOP or to anchor to the bottom, set anchorLocation to SC.ANCHOR_BOTTOM. The default layout of SC.Toolbar is { left: 0, right: 0, height: 32,zIndex10 } and so by setting the value of anchorLocation, the layout will be modified to either:

SC.ANCHOR_TOP: { borderBottom: 1, top: 0, left: 0, right: 0, height: 32, zIndex: 10 }

SC.ANCHOR_BOTTOM: { borderTop: 1, bottom: 0, left: 0, right: 0, height: 32, zIndex: 10 }

Of course, you can always override the layout property yourself in order to adjust the height, border and zIndex values.

Defined in: toolbar.js

Since:
SproutCore 1.0

Field Summary

Field Detail

anchorLocation String

Default anchor location. This will be applied automatically to the toolbar layout if you set it. Possible values:

  • SC.ANCHOR_TOP
  • SC.ANCHOR_LEFT
  • SC.ANCHOR_TOP_LEFT
  • SC.ANCHOR_BOTTOM
  • SC.ANCHOR_RIGHT
  • SC.ANCHOR_BOTTOM_RIGHT
Default value:
null
ariaRole String
The WAI-ARIA role for toolbar view.
Default value:
'toolbar'
classNames Array
Default value:
['sc-toolbar-view']
See:
SC.View#classNames
renderDelegateName String
Default value:
'toolbarRenderDelegate'
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)