Name

textlistitem — a textlistitem extends listitem and provides text display

Synopsis

LZX: textlistitem
JavaScript: lz.textlistitem
Type: Class
Access: public
Topic: Components.Laszlo Components
Declared in: lps/components/lz/textlistitem.lzx

Description

A textlistitem is a listitem which displays text. This is the most common form of a listitem, and is the default listitem for comboboxs, menus, lists, and floatinglists.

<canvas height="100">
               <list>
               <textlistitem text="item 1" value="1" selected="true"/>
               <textlistitem text="item 2" value="2"/>
               </list>
               </canvas>
Textlistitem is a baselist item with a text field.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baselistitem » listitem » textlistitem

Known Subclasses

Details

Properties (2)

text_x
<attribute name="text_x" value="4" />
public var text_x;
The x position of the displayed text.
text_y
<attribute name="text_y" value="${this.height/2 - this._title.height/2}" />
public var text_y;
the y position of the text label. default: centered

Methods (2)

_applystyle()
<method name="_applystyle" args="s" />
private function _applystyle(s);
_showEnabled()
<method name="_showEnabled" />
private function _showEnabled();

LZX Synopsis

<class name="lz.textlistitem" extends=" lz.listitem ">
  <attribute name=" text_x " value="4" />
  <attribute name=" text_y " value="${this.height/2 - this._title.height/2}" />
  <method name=" _applystyle " args="s" />
  <method name=" _showEnabled " />
</class>

JavaScript Synopsis

public lz.textlistitem extends  lz.listitem  {
  public var text_x ;
  public var text_y ;
  prototype private function _applystyle (s);
  prototype private function _showEnabled ();
}