<statictext>
Text component that uses the default component font and fontsize.

JavaScript: lz.statictext
extends <text> » <view> » <node> » lz.Eventable »

The statictext tag provides a text field which has a look and feel to match the lz component set, even when the canvas font has been changed. It can accept any text attribute.

<canvas height="100" font="conga" layout="axis: y">
  <font name="conga" src="congab.ttf"/>
  <include href="base/basecomponent.lzx"/>
  <text>text in app default font (Conga)</text>
  <statictext>text in component default font</statictext>
</canvas>
A simple text class that provide default font attributes for Laszlo components.

Methods

Methods inherited from <formatter>

abbreviate, formatToString, pad

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy