Configures a column in a GridView component.

Available since

1.0.0

.

See also:

Constructor

@:value({ itemToText : null })new(headerText:String, ?itemToText:Dynamic ‑> String)

Creates a new GridViewColumn object with the given arguments.

Available since

1.0.0

.

Variables

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";
Available since

1.0.0

.

@:value(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;
Available since

1.0.0

.

@:value(null)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;
Available since

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;
};
Available since

1.0.0

.