Skip to content

API / geotoolkit / widgets / datasheet / Row / Row

Class: Row

datasheet.Row.Row

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

Table of contents

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

Contents

Constructors

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

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

Parameters

Name Type Description
indexnumberindex
titlestringtitle
tableViewShapeTableViewtableViewShape
tableViewTableViewtableView
dataSheetDataSheetdataSheet
optionsOptionsoptions
Methods

calculateAutoRowHeight

▸ calculateAutoRowHeight(): number

Get new row height base on text content

Returns

number

New calculated row height


getFillStyle

▸ getFillStyle(): FillStyle

Get row fill style

Returns

FillStyle

this


getHeight

▸ getHeight(): number

Get row height

Returns

number

Row height


getTitle

▸ getTitle(): string

Get row title

Returns

string

Row title


getVisible

▸ getVisible(): boolean

Get whether row is visible

Returns

boolean

True if row is visible, false otherwise


highlight

▸ highlight(): Row

Highlight row

Returns

Row

this


setFillStyle

▸ setFillStyle(fillStyle): Row

Set row fill style

Parameters

Name Type Description
fillStyleTypeNew row fill style

Returns

Row

this


setHeight

▸ setHeight(height): Row

Set row height

Parameters

Name Type Description
heightnumberRow height

Returns

Row

this


setRowValidator

▸ setRowValidator(validator): Row

Set cell content validator for a row

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

Row

this


setTitle

▸ setTitle(title): Row

Set row title

Parameters

Name Type Description
titlestringRow title

Returns

Row

this


setVisible

▸ setVisible(visible?): Row

Set row visibility

Parameters

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

Returns

Row

this