class Table<T>
package buw
extends Widget › Sprite › DisplayObjectContainer › InteractiveObject › DisplayObject › EventDispatcher
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 |
Throws:
String | if relativeWidth not in [0..1] |
---|