ColumnGrid
Proxy class for the Dart-based column grid.
Extends
Constructors
new ColumnGrid()
new ColumnGrid(
dart):ColumnGrid
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Overrides
Source
Properties
| Property | Modifier | Type | Default value | Description | Inherited from |
|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | Widget._functions |
_properties | protected | Property[] | [] | - | Widget._properties |
_root | protected | HTMLElement | undefined | - | Widget._root |
dart | readonly | any | undefined | - | Widget.dart |
factory | public | null | Func | null | Constructor function. No parameters, returns [Widget]. | Widget.factory |
isDetached | public | boolean | false | - | Widget.isDetached |
props | public | any | undefined | - | Widget.props |
subs | public | Subscription[] | undefined | - | Widget.subs |
temp | public | any | undefined | Contains auxiliary information | Widget.temp |
Accessors
children
getchildren():Widget<any>[]
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Source
currentColumn
getcurrentColumn():Column<any,any>
Returns
Column<any, any>
Source
dfColumns
getdfColumns():DataFrame
Returns
Source
dfSource
getdfSource():DataFrame
Returns
Source
filter
getfilter(): (c) =>boolean
setfilter(f):void
Parameters
| Parameter | Type |
|---|---|
f | (c) => boolean |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
c | Column<any, any> |
Returns
boolean
Source
grid
getgrid():Grid
Returns
Source
mouseOverColumn
getmouseOverColumn():Column<any,any>
Returns
Column<any, any>
Source
nameCol
getnameCol():Column<any,any>
Returns
Column<any, any>
Source
parent
getparent():null|Widget<any>
Parent widget up the DOM tree, or null.
Returns
null | Widget<any>
Source
root
getroot():HTMLElement
Widget's visual root.
setroot(r):void
Parameters
| Parameter | Type |
|---|---|
r | HTMLElement |
Returns
HTMLElement
Source
showSearch
getshowSearch():boolean
setshowSearch(x):void
Parameters
| Parameter | Type |
|---|---|
x | boolean |
Returns
boolean
Source
type
gettype():string
Returns
string
Source
typeNameCol
gettypeNameCol():Column<any,any>
Returns
Column<any, any>
Source
Methods
addCheckedSelect()
addCheckedSelect():
void
Returns
void
Source
addChecks()
addChecks(
isChecked,addAdditionalChecks,additionalChecksName):void
Parameters
| Parameter | Type |
|---|---|
isChecked | (colName) => boolean |
addAdditionalChecks | (colName) => boolean |
additionalChecksName | string |
Returns
void
Source
addColumnProperty()
addColumnProperty(
p):Column<any,any>
Parameters
| Parameter | Type |
|---|---|
p | Property |
Returns
Column<any, any>
Source
addColumnSelectionControls()
addColumnSelectionControls():
void
Returns
void
Source
addColumnStats()
addColumnStats(
aggType):Column<any,any>
Parameters
| Parameter | Type |
|---|---|
aggType | string |
Returns
Column<any, any>
Source
addProperty()
privateaddProperty(propertyName,propertyType,defaultValue,options):any
Registers an property with the specified type, name, and defaultValue.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
propertyName | string | undefined | |
propertyType | "string" | "bigint" | "object" | "map" | "file" | "view" | "blob" | "int" | "double" | "bool" | "byte_array" | "datetime" | "qnum" | "dataframe" | "num" | "string_list" | "dataframe_list" | "cell" | "column" | "column_list" | "graphics" | "tablerowfiltercall" | "colfiltercall" | "bitset" | "dynamic" | "viewer" | "list" | "semantic_value" | "func" | "funccall" | "property" | "categorical" | "numerical" | "GridCellRenderArgs" | "element" | "TableView" | "User" | "Menu" | "Project" | "event_data" | "progressindicator" | "Credentials" | "ScriptEnvironment" | "Notebook" | undefined | |
defaultValue | any | null | |
options | null | object & IProperty | null |
Returns
any
Inherited from
See
Registered property gets added to properties. Returns default value, thus allowing to combine registering a property with the initialization
Source
apply()
apply(
properties):Widget<any>
Parameters
| Parameter | Type | Description |
|---|---|---|
properties | object |
Returns
Widget<any>
Inherited from
Source
checkAll()
checkAll(
isChecked?):void
Parameters
| Parameter | Type |
|---|---|
isChecked? | boolean |
Returns
void
Source
close()
close():
void
Returns
void
Source
columnsToDataFrame()
columnsToDataFrame(
columnsOrder?,addServiceColumns?,serviceColsTagName?):void
Parameters
| Parameter | Type |
|---|---|
columnsOrder? | Column<any, any>[] |
addServiceColumns? | boolean |
serviceColsTagName? | string |
Returns
void
Source
detach()
detach():
void
Gets called when a widget is detached and will no longer be used. Typically used for unsubscribing from events. Be sure to call super.detach() if this method is overridden.
Returns
void
Overrides
Source
filterColumns()
filterColumns():
void
Returns
void
Source
getAdditionalCheckedColumnNames()
getAdditionalCheckedColumnNames():
string[]
Returns
string[]
Source
getAdditionalCheckedColumns()
getAdditionalCheckedColumns():
Column<any,any>[]
Returns
Column<any, any>[]
Source
getAdditionalCheckedIndexes()
getAdditionalCheckedIndexes():
number[]
Returns
number[]
Source
getCheckedColumnNames()
getCheckedColumnNames():
string[]
Returns
string[]
Source
getCheckedColumns()
getCheckedColumns():
Column<any,any>[]
Returns
Column<any, any>[]
Source
getCheckedIndexes()
getCheckedIndexes():
number[]
Returns
number[]
Source
getCol()
getCol(
row):Column<any,any>
Parameters
| Parameter | Type |
|---|---|
row | number |
Returns
Column<any, any>
Source
getDartProperties()
getDartProperties():
any[]
Returns
any[]
Inherited from
Source
getFunctions()
getFunctions():
Func[]
Functions that are applicable to this particular widget. Used in the UI to display context actions, and for the AI integrations.
Returns
Func[]
Inherited from
Source
getProperties()
getProperties():
Property[]
Returns all properties of this widget.
Returns
Property[]
Inherited from
Source
getRow()
getRow(
col):number
Parameters
| Parameter | Type |
|---|---|
col | Column<any, any> |
Returns
number
Source
getSelectedColumns()
getSelectedColumns():
Column<any,any>[]
Returns
Column<any, any>[]
Source
indexes()
indexes(
rows):number[]
Parameters
| Parameter | Type |
|---|---|
rows | string |
Returns
number[]
Source
init()
init(
dfSource,filter?,syncSelections?,order?,addServiceColumns?):void
Parameters
| Parameter | Type |
|---|---|
dfSource | DataFrame |
filter? | (c) => boolean |
syncSelections? | boolean |
order? | Column<any, any>[] |
addServiceColumns? | boolean |
Returns
void
Source
initColumnDragDrop()
initColumnDragDrop():
void
Returns
void
Source
initColumnManager()
initColumnManager(
dfSource,filter?):void
Parameters
| Parameter | Type |
|---|---|
dfSource | DataFrame |
filter? | (c) => boolean |
Returns
void
Source
initColumnSelector()
initColumnSelector(
dfSource,checkAll?,filter?):void
Parameters
| Parameter | Type |
|---|---|
dfSource | DataFrame |
checkAll? | boolean |
filter? | (c) => boolean |
Returns
void
Source
initColumnTooltips()
initColumnTooltips():
void
Returns
void
Source
initContextMenu()
initContextMenu():
void
Returns
void
Source
initGrayedOutColumnStyle()
initGrayedOutColumnStyle():
void
Returns
void
Source
initTypeColoring()
initTypeColoring():
void
Returns
void
Source
onFrameAttached()
onFrameAttached(
dataFrame):void
Parameters
| Parameter | Type |
|---|---|
dataFrame | DataFrame |
Returns
void
Inherited from
Source
onPropertyChanged()
onPropertyChanged(
property):void
Gets called when viewer's property is changed.
Parameters
| Parameter | Type | Description |
|---|---|---|
property | null | Property | or null, if multiple properties were changed. |
Returns
void
Inherited from
Source
passesFilter()
passesFilter(
col,columnName?):boolean
Parameters
| Parameter | Type |
|---|---|
col | Column<any, any> |
columnName? | string |
Returns
boolean
Source
refreshStats()
refreshStats():
void
Returns
void
Source
setSelectedColumns()
setSelectedColumns(
columnIds):void
Parameters
| Parameter | Type |
|---|---|
columnIds | any[] |
Returns
void
Source
shouldShowColumnTooltip()
shouldShowColumnTooltip(
col):boolean
Parameters
| Parameter | Type |
|---|---|
col | Column<any, any> |
Returns
boolean
Source
sourceRowsChanged()
sourceRowsChanged():
void
Returns
void
Inherited from
Source
sub()
sub(
subscription):void
Registers a subscription to an external event.
Parameters
| Parameter | Type | Description |
|---|---|---|
subscription | Subscription |
Returns
void
Inherited from
Source
toDart()
toDart():
any
Returns
any
Inherited from
Source
columnManager()
staticcolumnManager(dfSource?,filter?,gridOptions?):ColumnGrid
Creates a new column manager grid.
Parameters
| Parameter | Type |
|---|---|
dfSource? | DataFrame |
filter? | (c) => boolean |
gridOptions? | object |
Returns
Source
columnReorderManagerDialog()
staticcolumnReorderManagerDialog(df,title,options?):ColumnGrid
Creates a new column reorder manager grid.
Parameters
| Parameter | Type |
|---|---|
df | DataFrame |
title | string |
options? | object |
options.addAdditionalChecks? | (colName, additionalColumnName?) => boolean |
options.addServiceColumns? | boolean |
options.additionalChecksName? | string |
options.applyOrder? | (cg) => void |
options.applyVisibility? | (cg) => void |
options.checks? | (colName) => boolean |
options.dfSource? | Grid |
options.filter? | (c) => boolean |
options.gridOptions? | object |
options.order? | Column<any, any>[] |
Returns
Source
columnSelector()
staticcolumnSelector(dfSource,options?):ColumnGrid
Creates a new column selector grid.
Parameters
| Parameter | Type |
|---|---|
dfSource | DataFrame |
options? | object |
options.checkAll? | boolean |
options.filter? | (c) => boolean |
options.isChecked? | (c) => boolean |
Returns
Source
create()
staticcreate(options?):ColumnGrid
Creates a new grid.
Parameters
| Parameter | Type |
|---|---|
options? | object |
options.filter? | (c) => boolean |
options.gridOptions? | object |
options.isColGrayedOut? | (input) => any |
options.showMenuIcon? | boolean |
Returns
Source
find()
staticfind(root):null|Widget<any>
Finds existing widget from its visual root.
Parameters
| Parameter | Type |
|---|---|
root | Element |
Returns
null | Widget<any>
Inherited from
Source
fromRoot()
staticfromRoot(root):Widget<any>
Creates a new widget from the root element.
Parameters
| Parameter | Type |
|---|---|
root | HTMLElement |
Returns
Widget<any>
Inherited from
Source
getAll()
staticgetAll():Widget<any>[]
Returns all currently active widgets.
Returns
Widget<any>[]
Inherited from
Source
popup()
staticpopup(dfSource,options?):ColumnGrid
Creates a new popup grid.
Parameters
| Parameter | Type |
|---|---|
dfSource | DataFrame |
options? | object |
options.addEmpty? | boolean |
options.filter? | (c) => boolean |
options.grayedOutColsMode? | boolean |
options.serviceColsTagName? | string |
options.widgetMode? | boolean |