new RowLevelOrColumn(name, level)
Enumeration-like class. Instances of subclasses indicate hierarchical levels of rows within the tree, or the column.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
level |
int | 0-based level/index |
Methods
forLevel()
This is a simple translation map. It returns n-th argument (counting from 0), where n=this.level. If that argument is a function (a closure), this calls it and then it returns its result.