API / geotoolkit / widgets / datasheet / Column / Column
DataSheet column A column in DataSheet table NOTE: Column will be created automatically after DataSheet is initialized
Methods
Constructors
• new Column(index, title, tableViewShape, tableView, dataSheet, options)
Methods
▸ getFillStyle(): FillStyle
Get column fill style
this
▸ getTitle(): string
Get column title
string
Column title
▸ getVisible(): boolean
Get whether column is visible
boolean
True if column is visible, false otherwise
▸ getWidth(): number
Get column width
number
Column width
▸ highlight(): Column
Highlight column
this
▸ setColumnValidator(validator): Column
Set cell content validator for a column
| Name | Type | Description |
|---|---|---|
validator | ValidatorPredicate | ValidationPreset | Validation function to validate cell content, validator must be in the form of function (cellContent) and must return a boolean, return true means cell text content is valid, false otherwise, cellContent parameter is cell content to be validated of type string. |
this
▸ setFillStyle(fillStyle): Column
Set column fill style
| Name | Type | Description |
|---|---|---|
fillStyle | Type | New column fill style |
this
▸ setTitle(title): Column
Set column title
| Name | Type | Description |
|---|---|---|
title | string | Column title |
this
▸ setVisible(visible?): Column
Set column visibility
| Name | Type | Description |
|---|---|---|
Optional visible | boolean | False to hide this column, true otherwise |
this
▸ setWidth(width): Column
Set column width
| Name | Type | Description |
|---|---|---|
width | number | Column width |
this