table (to display collections of items)

 Col 1 title   Col 2 title   Col 3 title 
 Item_1.field_1   Item_1.field_2   Item_1.field_3 
 Item_2.field_1   Item_2.field_2   Item_2.field_3 

Constructor

new (?listener:T ‑> Void, ?relativeWidth:Float, columns:Array<TableColumn<T>>)

Parameters:

listener

what to do with the clicked item; defaults to null

relativeWidth

the widget relative width; defaults to 1

columns

the columns relative widths, alignements, titles, item field names and renderers
[new TableColumn(0.33, "Col 1 title", "field_1"), ...] for example

Throws:

String

if relativeWidth not in [0..1]

Variables

write onlysource:Iterable<T>

the Table data source (Array or List)

Methods

push (item:T):Table<T>

adds an item to the data source

Parameters:

item

the item to add / display

Throws:

String

if source is not an Array nor a List (null for example)

Returns:

the Table instance

Inherited Variables

Inherited Methods