<swatchview>
A simple space-filling colored view.

JavaScript: lz.swatchview
extends <view> » <node> » lz.Eventable »

A simple view that is filled with a single color. Either 'fgcolor' and 'bgcolor' may be used to set the color of the view. By default it fills the space of the parent with white.

Unlike with other views, setColorTransform will affect the bgcolor of the view.

swatchview is a simple view that is filled with a single color. Either 'fgcolor' and 'bgcolor' may be used to set the color of the view. By default it fills the space of the parent with white

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
color expression any 0xffffff readonly
  this is the color that was set (by setting 'bgcolor' or 'fgcolor' ), bgcolor may be different if setColorTransform has been called

Methods

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy