Skip to content

API / geotoolkit / widgets / datasheet / Column / Column

Class: Column

datasheet.Column.Column

DataSheet column A column in DataSheet table NOTE: Column will be created automatically after DataSheet is initialized

Table of contents

Constructors
  • [new Column(index, title, tableViewShape, tableView, dataSheet, options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.widgets-1.datasheet.column.column.md#new column(index, title, tableviewshape, tableview, datasheet, options))
Methods

Contents

Constructors

new Column(index, title, tableViewShape, tableView, dataSheet, options)

• new Column(index, title, tableViewShape, tableView, dataSheet, options)

Parameters

Name Type Description
indexnumberindex
titlestringtitle
tableViewShapeTableViewtableViewShape
tableViewTableViewtableView
dataSheetDataSheetdataSheet
optionsOptionsoptions
Methods

getFillStyle

▸ getFillStyle(): FillStyle

Get column fill style

Returns

FillStyle

this


getTitle

▸ getTitle(): string

Get column title

Returns

string

Column title


getVisible

▸ getVisible(): boolean

Get whether column is visible

Returns

boolean

True if column is visible, false otherwise


getWidth

▸ getWidth(): number

Get column width

Returns

number

Column width


highlight

▸ highlight(): Column

Highlight column

Returns

Column

this


setColumnValidator

▸ setColumnValidator(validator): Column

Set cell content validator for a column

Parameters

Name Type Description
validatorValidatorPredicate | ValidationPresetValidation 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.

Returns

Column

this


setFillStyle

▸ setFillStyle(fillStyle): Column

Set column fill style

Parameters

Name Type Description
fillStyleTypeNew column fill style

Returns

Column

this


setTitle

▸ setTitle(title): Column

Set column title

Parameters

Name Type Description
titlestringColumn title

Returns

Column

this


setVisible

▸ setVisible(visible?): Column

Set column visibility

Parameters

Name Type Description
Optional visiblebooleanFalse to hide this column, true otherwise

Returns

Column

this


setWidth

▸ setWidth(width): Column

Set column width

Parameters

Name Type Description
widthnumberColumn width

Returns

Column

this