<basegridcolumn>
An abstract column in a grid.

JavaScript: lz.basegridcolumn
extends <basecomponent> » <view> » <node> » lz.Eventable »

basegridcolumn can be used in basegrids or grids to customize the look of both the column header and the row contents for that column. In cases where a standard column header look is desired, but the contents may vary, use gridcolumn.

The placement of "header" can be used to place nodes in the header of the grid, and the default placement for the class will place things in the row. See the example in basegrid.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
ascendComparator expression any null read/write
  An optional method. If defined, this method will be used when the column is sorted when ascendsort is set to true. This method should have the comparator signature. It should accept to string argument and return 1, 0 , or -1, indicating that the two arguments are in order, equivalent, or out of order, respectively.
ascendsort expression any true read/write
  If true, the next sort will be ascending, otherwise it will be descending.
colwidth expression any this.width read/write
  The current width of the column.
datatype string String string read/write
  Either "number" or "string". If "string", then dictionary sort is used. If "number", then types are coerced to a number before sorting.
descendComparator expression any null read/write
  An optional method. If defined, this method will be used when the column is sorted when ascendsort is set to false. This method should have the comparator signature. It should accept to string argument and return 1, 0 , or -1, indicating that the two arguments are in order, equivalent, or out of order, respectively.
hasSort boolean boolean false readonly
  Set by doSort() method. If true, then this is the current sort column.
minwidth number Number 10 read/write
  The minimum width for this column. This is relevant if the column can be resized.
sortpath string String   read/write
  An xpath expression to use to determine the sort key for this column. By default, this is the column's datapath's xpath.
text text String this.datapath? this.datapath.xpath : '' read/write
  By default, the text of this element is the column's datapath.

Methods

doSort()
basegridcolumn.doSort();
Sorts the grid on the current column using the column's sortpath and ascendsort arguments.

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy