This control displays a button, which when clicked, will cause a panel to "unroll" beneath
it like a windowshade being pulled down; or if the panel is already displayed it
will be "rolled up" like a windowshade being rolled up. When multiple WindowShades are stacked
in a VBox, the result will be similar to an mx.containers.Accordian container, except that multiple
WindowShades can be opened simultaneously whereas an Accordian acts like a tab navigator, with only
one panel visible at a time.
headerLocation:String
[read-write]
Specifies where the header button is placed relative tot he content of this WindowShade. Possible
values are top
and bottom
.
This property can be used as the source for data binding.
Implementation
public function get headerLocation():String
public function set headerLocation(value:String):void
headerRenderer:IFactory
[read-write]
To control the header used on the WindowShade component you can either set the headerClass
or the
headerRenderer
. The headerRenderer
works similar to the itemRenderer of a List control.
You can set this using MXML using any Button control. This would let you customize things like button skin. You could
even combine this with the CanvasButton component to make complex headers.
Implementation
public function get headerRenderer():IFactory
public function set headerRenderer(value:IFactory):void
public var opened:Boolean
Sets or gets the state of this WindowShade, either opened (true) or closed (false).
viewMetrics:EdgeMetrics
[read-only]Implementation
public function get viewMetrics():EdgeMetrics
public function WindowShade()
protected function applyHeaderButtonStyles(button:Button):void
Parameters
protected function createOrReplaceHeaderButton():void