GridColumn
Represents a grid column
Constructors
new GridColumn()
new GridColumn(
dart
):GridColumn
Parameters
Parameter | Type |
---|---|
dart | any |
Returns
Source
Properties
Property | Type |
---|---|
dart | any |
Accessors
backColor
get
backColor():Color
Background column as a 4-byte ARGB number.
set
backColor(x
):void
Parameters
Parameter | Type |
---|---|
x | Color |
Returns
Source
categoryColors
get
categoryColors():object
Custom colors for categories. Sample: https://public.datagrok.ai/js/samples/grid/category-colors
set
categoryColors(x
):void
Parameters
Parameter | Type |
---|---|
x | object |
Returns
object
Source
cellType
get
cellType():string
set
cellType(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Cell type.
Source
column
get
column():null
|Column
<any
>
Returns
null
| Column
<any
>
Corresponding table column, or null.
Source
contentCellStyle
get
contentCellStyle():GridCellStyle
Cell style used for rendering data cells
Returns
Source
editable
get
editable():boolean
Whether the column is editable.
set
editable(x
):void
Parameters
Parameter | Type |
---|---|
x | boolean |
Returns
boolean
Source
format
get
format():string
Column format. Sample: https://public.datagrok.ai/js/samples/grid/html-markup-cells
set
format(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Source
grid
get
grid():Grid
A Grid this column is associated with
Returns
Source
headerCellStyle
get
headerCellStyle():GridCellStyle
Cell style used for rendering header cells
Returns
Source
idx
get
idx():number
Index of the column.
Returns
number
Source
isTextColorCoded
get
isTextColorCoded():boolean
isTextColorCoded. Whether to apply color to the text or background.
set
isTextColorCoded(x
):void
Parameters
Parameter | Type |
---|---|
x | boolean |
Returns
boolean
Source
left
get
left():number
Left border (in pixels in the virtual viewport)
Returns
number
Source
name
get
name():string
set
name(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Column name.
Source
renderer
get
renderer():GridCellRenderer
Grid cell renderer.
set
renderer(x
):void
Parameters
Parameter | Type |
---|---|
x | GridCellRenderer |
Returns
Source
right
get
right():number
Right border (in pixels in the virtual viewport)
Returns
number
Source
selected
get
selected():boolean
Whether the column is selected.
set
selected(x
):void
Parameters
Parameter | Type |
---|---|
x | boolean |
Returns
boolean
Source
settings
get
settings():any
Grid column settings.
set
settings(s
):void
Parameters
Parameter | Type |
---|---|
s | any |
Returns
any
Source
tags
get
tags():object
Use this field to keep arbitrary auxiliary data. It is serialized as JSON, so be careful. See also temp.
Returns
object
Source
temp
get
temp():object
Use this field to keep auxiliary data. It is not serialized. See also tags.
Returns
object
Source
tooltipColumns
get
tooltipColumns():string
[]
Tooltip columns. Also requires tooltipType to be 'Columns'.
set
tooltipColumns(x
):void
Parameters
Parameter | Type |
---|---|
x | string [] |
Returns
string
[]
Source
tooltipForm
get
tooltipForm():string
Tooltip form. Also requires tooltipType to be 'Form'.
set
tooltipForm(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Source
tooltipType
get
tooltipType():GridColumnTooltipType
Tooltip type, specific to this column.
set
tooltipType(x
):void
Parameters
Parameter | Type |
---|---|
x | GridColumnTooltipType |
Returns
Source
visible
get
visible():boolean
Column visibility.
set
visible(x
):void
Parameters
Parameter | Type |
---|---|
x | boolean |
Returns
boolean
Source
width
get
width():number
Column width in pixels. Sample: https://public.datagrok.ai/js/samples/grid/resize-columns
set
width(x
):void
Parameters
Parameter | Type |
---|---|
x | number |
Returns
number
Source
Methods
checkEditable()
checkEditable():
string
Returns null if column is editable, or the reason of not being editable, otherwise
Returns
string
Source
getDataWidth()
getDataWidth():
number
Number of pixels required to render the longest element in the column.
Returns
number
Source
getVisibleCells()
getVisibleCells():
Iterable
<GridCell
>
Returns all visible cells
Returns
Iterable
<GridCell
>
Source
move()
move(
position
):void
Moves the specified column to the specified position
Parameters
Parameter | Type |
---|---|
position | number |
Returns
void
Source
scrollIntoView()
scrollIntoView():
void
If this column is not entirely visible, scrolls the grid horizontally to show it.
Returns
void
Source
fromDart()
static
fromDart(dart
):null
|GridColumn
Parameters
Parameter | Type |
---|---|
dart | any |
Returns
null
| GridColumn