Name

textlistitem — a textlistitem extends listitem and provides text display

Synopsis

LZX: textlistitem
JavaScript: 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

Known Direct Subclasses: menuitem

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

LZX Synopsis

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

JavaScript Synopsis

public textlistitem extends  listitem  {
  public var text_x ;
  public var text_y ;
}