FilterGroup
Represents a group of filters that are located together.
Extends
Constructors
new FilterGroup()
new FilterGroup(
dart):FilterGroup
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Overrides
Source
Properties
| Property | Modifier | Type | Default value | Description | Overrides | Inherited from |
|---|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | Viewer._functions | Viewer._functions |
_properties | protected | Property[] | [] | - | Viewer._properties | Viewer._properties |
_root | protected | HTMLElement | undefined | - | Viewer._root | Viewer._root |
dart | public | any | undefined | - | Viewer.dart | Viewer.dart |
factory | public | null | Func | null | Constructor function. No parameters, returns [Widget]. | Viewer.factory | Viewer.factory |
isDetached | public | boolean | false | - | Viewer.isDetached | Viewer.isDetached |
props | public | any | undefined | - | Viewer.props | Viewer.props |
subs | public | Subscription[] | undefined | - | Viewer.subs | Viewer.subs |
tags | public | any | undefined | - | Viewer.tags | Viewer.tags |
temp | public | any | undefined | Contains auxiliary information | Viewer.temp | Viewer.temp |
CORE_VIEWER_TYPES | static | string[] | ... | - | Viewer.CORE_VIEWER_TYPES | Viewer.CORE_VIEWER_TYPES |
Accessors
children
getchildren():Widget<any>[]
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Source
dataFrame
getdataFrame():DataFrame
setdataFrame(t):void
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
Returns
Source
descriptor
getdescriptor():WidgetDescriptor
Descriptor of this widget.
Returns
Source
filter
getfilter():BitSet
combined filter of the viewer
setfilter(f):void
Parameters
| Parameter | Type |
|---|---|
f | BitSet |
Returns
Source
filters
Returns array of filters in FilterGroup. Filter if js filter and dart object if dart filter
Returns
Source
helpUrl
gethelpUrl():string
Help URL
sethelpUrl(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
meta
getmeta():ViewerMetaHelper
Returns
Source
onContextMenu
getonContextMenu():Observable<Menu>
Returns
Observable <Menu>
Source
onDartPropertyChanged
getonDartPropertyChanged():Observable<null>
Returns
Observable<null>
Source
onDataEvent
getonDataEvent():Observable<ViewerEvent>
Returns
Observable <ViewerEvent>
Source
onDataRowClicked
getonDataRowClicked():Observable<ViewerEvent>
Returns
Observable <ViewerEvent>
Source
onDataSelected
getonDataSelected():Observable<ViewerEvent>
Returns
Observable <ViewerEvent>
Source
onDetached
getonDetached():Observable<any>
Occurs when viewer is detached.
Returns
Observable<any>
Source
onPropertyValueChanged
getonPropertyValueChanged():Observable<EventData<Property>>
Returns
Observable <EventData <Property>>
Source
onTooltipCreated
getonTooltipCreated():Observable<ViewerEvent>
Returns
Observable <ViewerEvent>
Source
parent
getparent():null|Widget<any>
Parent widget up the DOM tree, or null.
Returns
null | Widget<any>
Source
root
getroot():HTMLElement
Visual root.
Returns
HTMLElement
Source
table
gettable():DataFrame
Returns
Source
tableView
gettableView():null|TableView
Returns a view this viewer is associated with, or null
Returns
null | TableView
Source
type
gettype():string
Returns viewer type (see VIEWER constants)
Returns
string
Source
view
getview():null|View
Returns a view this viewer is associated with, or null
Returns
null | View
Source
Methods
add()
add<
T>(state):void
Type parameters
| Type parameter |
|---|
T extends FilterState |
Parameters
| Parameter | Type |
|---|---|
state | T |
Returns
void
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
close()
close():
void
Closes and detaches the viewer.
Returns
void
Inherited from
Source
copyViewersLook()
copyViewersLook(
other):void
Parameters
| Parameter | Type |
|---|---|
other | Viewer<any> |
Returns
void
Inherited from
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
Inherited from
Source
getDartProperties()
getDartProperties():
any[]
Returns
any[]
Inherited from
Source
getFilterSummary()
getFilterSummary():
Element
Returns
Element
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
getInfo()
getInfo():
object
Returns
object
Inherited from
Source
getOptions()
getOptions(
includeDefaults):object
Gets the serialized viewer options. [includeDefaults] flag specifies whether the properties with the default values should be returned. Not including default properties makes it more clean and efficient for serialization purposes.
See also setOptions Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/scatter-plot
Parameters
| Parameter | Type | Default value |
|---|---|---|
includeDefaults | boolean | false |
Returns
object
| Member | Type |
|---|---|
id | string |
look | object |
type | string |
Inherited from
Source
getProperties()
getProperties():
Property[]
Returns all properties of this widget.
Returns
Property[]
Inherited from
Source
getStates()
getStates(
columnName,filterType):Object[]
Parameters
| Parameter | Type |
|---|---|
columnName | string |
filterType | String |
Returns
Object[]
Source
initDartObject()
initDartObject(
dart):void
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
void
Inherited from
Source
onEvent()
onEvent(
eventId):Observable<any>
Observes platform events with the specified eventId.
Parameters
| Parameter | Type | Default value |
|---|---|---|
eventId | null | string | null |
Returns
Observable<any>
Inherited from
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
remove()
remove(
filter):void
Parameters
| Parameter | Type |
|---|---|
filter | Widget<any> | Filter |
Returns
void
Source
removeFromView()
removeFromView():
any
Returns
any
Inherited from
Source
setActive()
setActive(
active,notify):void
Parameters
| Parameter | Type | Default value |
|---|---|---|
active | boolean | undefined |
notify | boolean | true |
Returns
void
Source
setEnabled()
setEnabled(
filter,active):void
Parameters
| Parameter | Type |
|---|---|
filter | Widget<any> | FilterState | Filter |
active | boolean |
Returns
void
Source
setExpanded()
setExpanded(
filter,active):void
Parameters
| Parameter | Type |
|---|---|
filter | Widget<any> | Filter |
active | boolean |
Returns
void
Source
setOptions()
setOptions(
map):void
Sets viewer options. See also getOptions Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/scatter-plot
Parameters
| Parameter | Type | Description |
|---|---|---|
map | object | |
map.type? | string | - |
Returns
void
Inherited from
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
toCompactLook()
toCompactLook():
void
Returns
void
Inherited from
Source
toDart()
toDart():
any
Returns
any
Inherited from
Source
updateOrAdd()
updateOrAdd<
T>(state,requestFilter?):void
Type parameters
| Type parameter |
|---|
T extends FilterState |
Parameters
| Parameter | Type |
|---|---|
state | T |
requestFilter? | boolean |
Returns
void
Source
barChart()
staticbarChart(t,options?):Viewer<IBarChartSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IBarChartSettings> |
Returns
Inherited from
Source
boxPlot()
staticboxPlot(t,options?):BoxPlot
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IBoxPlotSettings> |
Returns
Inherited from
Source
calendar()
staticcalendar(t,options?):Viewer<ICalendarSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <ICalendarSettings> |
Returns
Inherited from
Source
canVisualize()
staticcanVisualize(viewerType,dataFrame):null|string
Parameters
| Parameter | Type |
|---|---|
viewerType | string |
dataFrame | DataFrame |
Returns
null | string
Inherited from
Source
correlationPlot()
staticcorrelationPlot(t,options?):Viewer<ICorrelationPlotSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <ICorrelationPlotSettings> |
Returns
Viewer <ICorrelationPlotSettings>
Inherited from
Source
densityPlot()
staticdensityPlot(t,options?):Viewer<IDensityPlotSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IDensityPlotSettings> |
Returns
Inherited from
Source
filters()
staticfilters(t,options?):Viewer<IFiltersSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IFiltersSettings> |
Returns
Inherited from
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
form()
staticform(t,options?):Viewer<IFormSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IFormSettings> |
Returns
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
fromType()
staticfromType(viewerType,table,options):Viewer<any>
Creates a new viewer of the specified type.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
viewerType | string | undefined | |
table | DataFrame | undefined | |
options | null | object | null |
Returns
Viewer<any>
Inherited from
Source
getAll()
staticgetAll():Widget<any>[]
Returns all currently active widgets.
Returns
Widget<any>[]
Inherited from
Source
getViewerTypes()
staticgetViewerTypes(options?):string[]
Gets all available viewer types Core means the viewer is already loaded and all methods and properties are available synchronously.
Parameters
| Parameter | Type |
|---|---|
options? | object |
options.core? | boolean |
Returns
string[]
Inherited from
Source
grid()
staticgrid(t,options?):Grid
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IGridSettings> |
Returns
Inherited from
Source
heatMap()
staticheatMap(t,options?):Grid
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IGridSettings> |
Returns
Inherited from
Source
histogram()
statichistogram(t,options?):HistogramViewer
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IHistogramSettings> |
Returns
Inherited from
Source
lineChart()
staticlineChart(t,options?):LineChartViewer
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <ILineChartSettings> |
Returns
Inherited from
Source
markup()
staticmarkup(t,options?):Viewer<IMarkupViewerSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IMarkupViewerSettings> |
Returns
Viewer <IMarkupViewerSettings>
Inherited from
Source
matrixPlot()
staticmatrixPlot(t,options?):Viewer<IMatrixPlotSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IMatrixPlotSettings> |
Returns
Inherited from
Source
network()
staticnetwork(t,options?):Viewer<INetworkDiagramSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <INetworkDiagramSettings> |
Returns
Viewer <INetworkDiagramSettings>
Inherited from
Source
pcPlot()
staticpcPlot(t,options?):Viewer<IPcPlotSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IPcPlotSettings> |
Returns
Inherited from
Source
pieChart()
staticpieChart(t,options?):Viewer<IPieChartSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IPieChartSettings> |
Returns
Inherited from
Source
scatterPlot()
staticscatterPlot(t,options?):ScatterPlotViewer
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IScatterPlotSettings> |
Returns
Inherited from
Source
scatterPlot3d()
staticscatterPlot3d(t,options?):Viewer<IScatterPlot3dSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IScatterPlot3dSettings> |
Returns
Viewer <IScatterPlot3dSettings>
Inherited from
Source
statistics()
staticstatistics(t,options?):Viewer<IStatsViewerSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <IStatsViewerSettings> |
Returns
Inherited from
Source
tile()
statictile(t,options?):Viewer<ITileViewerSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <ITileViewerSettings> |
Returns
Inherited from
Source
treeMap()
statictreeMap(t,options?):Viewer<ITreeMapSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <ITreeMapSettings> |
Returns
Inherited from
Source
trellisPlot()
statictrellisPlot(t,options?):Viewer<ITrellisPlotSettings>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | Partial <ITrellisPlotSettings> |
Returns
Inherited from
Source
wordCloud()
staticwordCloud(t,options?):Viewer<any>
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
options? | any |
Returns
Viewer<any>