API / geotoolkit / widgets / datasheet / DataSheet / DataSheet
Type Aliases
Type Aliases
Ƭ EventMap: EventMap & EventMap
Ƭ Options: Options & WidgetOptions & { data?: string[][] | number[][] | DataTable }
Options for datasheet
Ƭ Tools: { DataSheetSelection: DataSheetSelection ; Highlight: Highlight ; TableViewColumnHandler: ColumnHandler ; TableViewCompositeTool: CompositeTool ; TableViewHeaderHandler: HeaderHandler ; TableViewHighlight: Highlight ; TableViewPanning: Panning ; TableViewRowHandler: RowHandler ; TableViewSelection: Selection ; TableViewSplitter: Splitter } & Tools
Ƭ WidgetOptions: Object
| Name | Type | Description |
|---|---|---|
autotablesize? | boolean | True to let DataSheet decides table size if the actual size is smaller than the spcified size, the size will be decided base on supplied data (if defined) or number of rows and columns (if data is not supplied) |
cols? | number | Number of columns, will be ignored if autotablesize is True |
content? | { activecelllinestyle?: Type ; activerowfillstyle?: Type ; editable?: boolean ; evenfillstyle?: Type ; evenfillstylecolumn?: Type ; gridstyle?: Type ; highlightcolumnfillstyle?: Type ; oddfillstyle?: Type ; oddfillstylecolumn?: Type ; textsizemode?: string | WrapMode ; textstyle?: Type ; validator?: ValidatorPredicate | ValidationPreset } | Settings for content of DataSheet |
content.activecelllinestyle? | Type | Line style of cell when it is set to active |
content.activerowfillstyle? | Type | Fill style of a row in DataSheet content when it is set to active |
content.editable? | boolean | True to set cell content to be editable, false otherwise |
content.evenfillstyle? | Type | Fill style of even row in DataSheet content |
content.evenfillstylecolumn? | Type | Fill style for even column in DataSheet content |
content.gridstyle? | Type | Grid line style of table content |
content.highlightcolumnfillstyle? | Type | Fill style of a column in DataSheet content when it is set to active |
content.oddfillstyle? | Type | Fill style of odd row in DataSheet content |
content.oddfillstylecolumn? | Type | Fill style for odd column in DataSheet content |
content.textsizemode? | string | WrapMode | Wrap mode for DataSheet cell |
content.textstyle? | Type | Text style for cell text |
content.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 |
header? | { evenfillstyle?: Type ; gridstyle?: Type ; headerdata?: string[] ; highlightcolumnfillstyle?: Type ; oddfillstyle?: Type ; textstyle?: Type } | Settings for header or column titles row |
header.evenfillstyle? | Type | Fill style of even column in header row |
header.gridstyle? | Type | Grid line style |
header.headerdata? | string[] | Array of column titles |
header.highlightcolumnfillstyle? | Type | Fill style of a column in header row when it is set to active |
header.oddfillstyle? | Type | Fill style of odd column in header row |
header.textstyle? | Type | Text style for header row |
headerheight? | number | Header or column titles height |
headervisible? | boolean | value to set header row visibility |
highlightrowonhover? | boolean | True to highlight row when hover, false otherwise |
horizontalscroll? | boolean | "floating" | horizontal scroll bar visible or scrollbar floating mode |
index? | { activerowfillstyle?: Type ; evenfillstyle?: Type ; gridstyle?: Type ; indexdata?: string[] ; oddfillstyle?: Type ; textstyle?: Type } | Settings for index or row titles column |
index.activerowfillstyle? | Type | Fill style of a row in index column when it is set to active |
index.evenfillstyle? | Type | Fill style of even row in index column |
index.gridstyle? | Type | Grid line style |
index.indexdata? | string[] | Array of row titles |
index.oddfillstyle? | Type | Fill style of odd row in index column |
index.textstyle? | Type | Text style for index column |
indextitle? | string | Title of index column or row titles column |
indextitlefillstyle? | Type | - |
indexvisible? | boolean | value to set index column visibility |
indexwidth? | number | Index or row titles column |
mincolumnwidth? | number | Minimum column width |
minrowheight? | number | Minimum row height |
model? | Group | Model limits for DataSheet |
rows? | number | Number of rows, will be ignored if autotablesize is True |
verticalscroll? | boolean | "floating" | vertical scroll bar visible or scrollbar floating mode |