<roundrectbutton>

JavaScript: lz.roundrectbutton
extends <basecomponent> » <view> » <node> » lz.Eventable »
A class for making nice-looking, styleable buttons with gradients, without any art assets. See test/test-roundrectbutton.lzx for several examples of how to use this component. The component attributes are only used for initialization. They are not live constraints. Currently the best way to change them at runtime is to apply a <style>.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
downStartColor color Color 0xFFFFFF read/write
   
downStopColor color Color 0xCCCCCC read/write
   
overStartColor color Color 0x999999 read/write
   
overStopColor color Color 0x777777 read/write
   
upStartColor color Color 0xcccccc read/write
   
upStopColor color Color 0x999999 read/write
   

Methods

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy