Documentation in progress: please use the 3.4 Reference Manual.

Name

gridtext — Declares a text column in a grid.

Synopsis

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

Description

The gridtext class can be used to present editable column data. This is the default class used by grid when it infers columns.

<canvas height="250">
              <dataset name="contacts" request="true" src="http://www.openlaszlo.org/lps/demos/contacts/contactsdata.xml"/>

              <grid datapath="contacts:/resultset">
              <gridtext editable="false" datapath="@id" datatype="number">ID
              </gridtext>
              <gridtext datapath="@displayname" width="200"> Name
              </gridtext>
              </grid>
              </canvas>

Superclass Chain

gridcolumn » gridtext

Known Subclasses

Details

Properties (3)

datapath
<attribute name="datapath" />
public var datapath;
The datapath attribute for a grid text is used for the text that is displayed in the rows.
editable
<attribute name="editable" type="boolean" value="true" />
public var editable : boolean;
If set to false, the field will not be editable.
textalign
<attribute name="textalign" type="string" value="left" />
public var textalign : String;
type of content's alignment. Default: left possible values are: left, center, right

Methods (1)

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

LZX Synopsis

<class name="lz.gridtext" extends=" lz.gridcolumn ">
  <attribute name=" datapath " />
  <attribute name=" editable " type="boolean" value="true" />
  <attribute name=" textalign " type="string" value="left" />
  <method name=" _applystyle " args="s" />
</class>

JavaScript Synopsis

public lz.gridtext extends  lz.gridcolumn  {
  public var datapath ;
  public var editable  : boolean;
  public var textalign  : String;
  prototype public function _applystyle (s);
}