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 (7)

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.
rowdp
<attribute name="rowdp" type="string" value="" />
private var rowdp : String;
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
_textcolor
<attribute name="_textcolor" value="null" />
private var _textcolor;
_texthilitecolor
<attribute name="_texthilitecolor" value="null" />
private var _texthilitecolor;
_textselectedcolor
<attribute name="_textselectedcolor" value="null" />
private var _textselectedcolor;

Methods (2)

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

LZX Synopsis

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

JavaScript Synopsis

public lz.gridtext extends  lz.gridcolumn  {
  public var datapath ;
  public var editable  : boolean;
  private var rowdp  : String;
  public var textalign  : String;
  private var _textcolor ;
  private var _texthilitecolor ;
  private var _textselectedcolor ;
  prototype public function _applystyle (s);
  prototype private function _inferSortpath ();
}