class TreeGridViewColumn
package feathers.controls
extends EventDispatcher
implements IGridViewColumn
Constructor
new(?headerText:String, ?itemToText:Dynamic ‑> String, ?width:Float)
Creates a new TreeGridViewColumn
object with the given arguments.
1.0.0
.Variables
cellRendererRecycler:AbstractDisplayObjectRecycler<Dynamic, TreeGridViewCellState, DisplayObject> = null
Manages cell renderers used by this grid view column.
In the following example, the column uses a custom cell renderer class:
column.cellRendererRecycler = DisplayObjectRecycler.withClass(CustomCellRenderer);
1.0.0
.See also:
headerText:String
The text to display in the column's header.
In the following example, the column's header text is customized.
column.headerText = "Name";
1.0.0
.minWidth:Float = 0.0
The minimum width of the column, measured in pixels.
If the width
is specified explicitly, then the minWidth
will be
ignored.
In the following example, the column's minimum width is customized.
column.minWidth = 120.0;
1.0.0
.width:Null<Float> = null
The width of the column, measured in pixels.
In the following example, the column's width is customized.
column.width = 120.0;
1.0.0
.Methods
dynamicitemToText(data:Dynamic):String
Converts an item to text to display within a grid view cell. By default,
the toString()
method is called to convert an item to text. This
method may be replaced to provide custom text.
For example, consider the following item:
{ text: "Example Item" }
If the grid view cell should display the text "Example Item", a custom
implementation of itemToText()
might look like this:
column.itemToText = (item:Dynamic) -> {
return item.text;
};
1.0.0
.