Skip to content

API / geotoolkit / widgets / datasheet / DataSheet / DataSheet

Class: DataSheet

datasheet.DataSheet.DataSheet

DataSheet DataSheet widget is similar with TableView widget but with features allow user to have more control of cells content and styles User can also edit cell content like Excel sheet

Hierarchy

Table of contents

Constructors
  • [new DataSheet(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.widgets-1.datasheet.datasheet.datasheet.md#new datasheet(options))
Methods
addBaseLayeraddChildaddColumn
addCssClassaddInvalidateHandleraddOverlay
addRowadjustPositionapplyOpacity
applyResponsiveStylechangeBaseLayerOrderchangeChildOrder
changeOverlayOrdercheckCollisionclearBaseLayers
clearCacheclearChildrenclearOverlays
cloneconnectStyleconnectTool
copyConstructordisconnectStyledisconnectTool
disposedrawBorderenableClipping
enableEventPropagationenablePickingChildrenenumerateNodes
executefiltergetActiveCell
getAnimationStylegetAutoModelLimitsModegetAutoModelLimitsStrategy
getBaseLayergetBaseLayersgetBaseLayersCount
getBoundsgetCachegetCell
getChildgetChildrengetChildrenCount
getClassNamegetClipStylegetColumn
getColumnDatagetContentOrientationgetContentsArea
getContentsTransformgetCssgetCssClass
getCssClassesgetCssTransformgetData
getDataSetgetDataSheetLimitsgetDataSheetVisibleModelLimits
getDesiredHeightgetDesiredWidthgetDeviceLimits
getFillStylegetHighlightedColumngetHighlightedRow
getIdgetInfiniteModegetInvalidateMethod
getLayoutgetLayoutStylegetLineStyle
getLocalTransformgetMarginsStylegetModelLimits
getNamegetNumberOfColumnsgetNumberOfRows
getOpacitygetOpacityBlendModegetOverlay
getOverlayAtgetOverlayLayergetOverlays
getOverlaysCountgetPaddingStylegetParent
getPreferredSizegetPropertiesgetProperty
getPropertyKeysgetRenderingFiltergetResponsiveStyle
getRootgetRowgetRowData
getScaleScrollStrategygetSceneTransformgetTag
getToolgetToolByNamegetToolByType
getVisiblegetVisibleDeviceLimitsgetVisibleModelLimits
getWorldTransformgetZIndexhasCssClass
hasEventListenerhideColumnshideRows
indexOfBaseLayerindexOfChildindexOfOverlay
initializeToolsinsertBaseLayerinsertChild
insertColumninsertOverlayinsertRow
invalidateinvalidateLayoutinvalidateParent
isClippingEnabledisDisposedisEventPropagationEnabled
isHorizontalFlipisLayoutInvalidatedisNotificationEnabled
isPickingChildrenEnabledisSelectableisSilent
isVerticalFliplistToolsNamesloadTemplate
mergeCellsmoveTonotify
notifyRootoffon
onBoundsChangedonChildAddedonChildRemoved
onParentChangedonVisibilityChangedpostRendering
preRenderingrebuildregisterAnimationStyle
removeBaseLayerremoveChildremoveColumn
removeCssClassremoveInvalidateHandlerremoveOverlay
removeRowrenderrenderAsync
renderBackgroundrenderBaseLayersrenderBaseLayersAsync
renderChildrenrenderChildrenAsyncrenderContent
renderContentAsyncrenderOverlaysrenderOverlaysAsync
resumeUpdaterotatesaveTemplate
scalesetActiveCellsetAnimationStyle
setAutoModelLimitsModesetAutoModelLimitsStrategysetBounds
setCachesetChildsetClipStyle
setColumnsWidthsetContentEditablesetContentOrientation
setCsssetCssClasssetCssTransform
setDesiredHeightsetDesiredWidthsetFillStyle
setHorizontalFlipsetIdsetInfiniteMode
setLayoutsetLayoutInvalidatedsetLayoutStyle
setLineStylesetLocalTransformsetMarginsStyle
setModelLimitssetNamesetNotification
setNumberOfColumnssetNumberOfRowssetOpacity
setPaddingStylesetParentsetProperties
setPropertysetRenderingFiltersetResponsiveStyle
setRowsHeightsetScaleScrollStrategysetSelectable
setSilentsetTableBackgroundsetTag
setToolsetVerticalFlipsetVisible
setVisibleModelLimitssetZIndexshear
suspendUpdatetoStringtranslate
unhideAllColumnsunhideAllRowsunhideColumns
unhideRowsunmergeCellsunregisterAnimationStyle
updateLayoutupdateSceneTransformationupdateState
updateSuspendedupdateTimeStampenableSceneGraphNotification
findParentgetClassNameisSceneGraphNotificationEnabled

Contents

Constructors

new DataSheet(options)

• new DataSheet(options?)

Create data sheet

Parameters

Name Type Description
Optional optionsOptionsOptions for datasheet

Overrides

BaseWidget.constructor

Methods

addBaseLayer

▸ addBaseLayer(baseLayer): DataSheet

Add baseLayer to container

Parameters

Name Type Description
baseLayerNode | Node[]baseLayer to be added

Returns

DataSheet

this

Inherited from

BaseWidget.addBaseLayer


addChild

▸ addChild(node): DataSheet

Add a child node

Parameters

Name Type Description
nodeNode | Iterator<Node&gt; | Node[]the child node to be added

Returns

DataSheet

this

Inherited from

BaseWidget.addChild


addColumn

▸ addColumn(columnData): DataSheet

Add a new column at the end of DataSheet

Parameters

Name Type Description
columnDatastring[]List of data for each cell of the new column, any missing cell data will be set to empty string by default

Returns

DataSheet

this


addCssClass

▸ addCssClass(cssclass): DataSheet

Adds new css class to node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

DataSheet

this

Inherited from

BaseWidget.addCssClass


addInvalidateHandler

▸ addInvalidateHandler(handler): DataSheet

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

DataSheet

this

Inherited from

BaseWidget.addInvalidateHandler


addOverlay

▸ addOverlay(overlay): DataSheet

Add overlay to container

Parameters

Name Type Description
overlayNode | Node[]overlay to be added

Returns

DataSheet

this

Inherited from

BaseWidget.addOverlay


addRow

▸ addRow(rowData): DataSheet

Add a new row at the end of DataSheet

Parameters

Name Type Description
rowDatastring[]List of data for each cell of the new row, any missing cell data will be set to empty string by default

Returns

DataSheet

this


adjustPosition

▸ adjustPosition(area?, vAlign?, hAlign?): DataSheet

Adjust position of node to specified area

Parameters

Name Type Description
Optional areaRectspecified area. Default to Parent Model Limits
Optional vAlignstringvertical alignment. It can be &quot;top&quot;, &quot;bottom&quot;, &quot;center&quot;. Defaults to &quot;top&quot;.
Optional hAlignstringhorizontal alignment It can be &quot;left&quot;, &quot;right&quot;, &quot;center&quot;. Defaults to &quot;left&quot;.

Returns

DataSheet

this

Inherited from

BaseWidget.adjustPosition


applyOpacity

▸ Protected applyOpacity(context): DataSheet

This method is called to apply opacity if it is specified on the rendering context. The default implementation sets global alpha on the rendering context

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

DataSheet

this

Inherited from

BaseWidget.applyOpacity


applyResponsiveStyle

▸ Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

BaseWidget.applyResponsiveStyle


changeBaseLayerOrder

▸ changeBaseLayerOrder(overlay, order, anchor?): DataSheet

Changes the z-order of the baseLayer.

Parameters

Name Type Description
overlayNode
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

DataSheet

this

Inherited from

BaseWidget.changeBaseLayerOrder


changeChildOrder

▸ changeChildOrder(node, order, anchor?): DataSheet

changes the z-order of the nodes being rendered.

Parameters

Name Type Description
nodeNodeany child added in the Composite node
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

DataSheet

this

Inherited from

BaseWidget.changeChildOrder


changeOverlayOrder

▸ changeOverlayOrder(overlay, order, anchor?): DataSheet

Changes the z-order of the overlay.

Parameters

Name Type Description
overlayNodechild overlay
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

DataSheet

this

Inherited from

BaseWidget.changeOverlayOrder


checkCollision

▸ checkCollision(context): boolean

Check culling Returns true if object is inside of renderable area

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if node is collided

Inherited from

BaseWidget.checkCollision


clearBaseLayers

▸ clearBaseLayers(disposeBaseLayers?): DataSheet

Remove all child baseLayers from group

Parameters

Name Type Description
Optional disposeBaseLayersbooleanautomatically dispose baseLayers. If it is true then method dispose is called for each baseLayer, false by default

Returns

DataSheet

this

Inherited from

BaseWidget.clearBaseLayers


clearCache

▸ clearCache(): DataSheet

Clear cache

Returns

DataSheet

this

Inherited from

BaseWidget.clearCache


clearChildren

▸ clearChildren(disposeChildren?): DataSheet

Remove all child nodes from this composite group

Parameters

Name Type Description
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

DataSheet

this

Inherited from

BaseWidget.clearChildren


clearOverlays

▸ clearOverlays(disposeOverlays?): DataSheet

Remove all child overlays from group

Parameters

Name Type Description
Optional disposeOverlaysbooleanautomatically dispose overlays. If it is true then method dispose is called for each overlay, false by default

Returns

DataSheet

this

Inherited from

BaseWidget.clearOverlays


clone

▸ clone(): Group<Node&gt;

All subclasses should override copyConstructor or provide custom implementation for this method

Returns

Group<Node&gt;

clone

Inherited from

BaseWidget.clone


connectStyle

▸ connectStyle(style, type, callback): DataSheet

Connects style.<br> <br> This convenience method subscribes a listener to given style for the specified type.<br> And automatically un-subscribes listener if node is disposed to prevent memory leaks

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher&gt;function to be called

Returns

DataSheet

this

Inherited from

BaseWidget.connectStyle


connectTool

▸ connectTool(tool): DataSheet

Connect a new tool with a toolname to the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool associated with the widget

Returns

DataSheet

this

Inherited from

BaseWidget.connectTool


copyConstructor

▸ Protected copyConstructor(src, deepCopy?): DataSheet

Copy constructor function.<br> Function used as part of the cloning mechanism.<br> Implementations should copy the given instance state to this instance.<br>

Parameters

Name Type Description
srcGroup<Node&gt;Source to copy from
Optional deepCopybooleandeep copy

Returns

DataSheet

this

Inherited from

BaseWidget.copyConstructor


disconnectStyle

▸ disconnectStyle(style, type, callback): DataSheet

Disconnect style <br> This convenience method un-subscribes a listener to given style for the specified type.<br>

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher&gt;function to be called

Returns

DataSheet

this

Inherited from

BaseWidget.disconnectStyle


disconnectTool

▸ disconnectTool(tool): DataSheet

Disconnect the tool from the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool to disconnect

Returns

DataSheet

this

Inherited from

BaseWidget.disconnectTool


dispose

▸ dispose(): void

Dispose node. Clear all listeners and disconnect style to avoid memory leaks

Returns

void

Inherited from

BaseWidget.dispose


drawBorder

▸ Protected drawBorder(localContext, bounds?): DataSheet

Draws a rectangle at the bounding box (in parent coordinates)

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

DataSheet

this

Inherited from

BaseWidget.drawBorder


enableClipping

▸ enableClipping(doClip): DataSheet

Enables or disables clipping of this node. If enabled, shapes will not be rendered outside of its bounds.

Parameters

Name Type Description
doClipbooleanenable clipping on this node

Returns

DataSheet

this

Inherited from

BaseWidget.enableClipping


enableEventPropagation

▸ enableEventPropagation(enable): DataSheet

Enable event propagation from the node hierarchy from bottom to top <p> This option is similar to DOM Event bubbling, which allows to get any event from child node. By default it is disabled for better performance. </p>

Example

import {Group} from '@int/geotoolkit/scene/Group';
import {Events as SceneEvents} from '@int/geotoolkit/scene/Node';
const parentGroup = new Group()
.setName('ParentGroup')
.enableEventPropagation(true);
const childGroup = new Group()
.setName('ChildGroup');

parentGroup.addChild(childGroup);
parentGroup.on(SceneEvents.Invalidate, (eventName, sender, args) =&gt; {
// Got notifications from all children of parent group
});
childGroup.invalidate();

Parameters

Name Type Description
enablebooleanenable

Returns

DataSheet

this

Inherited from

BaseWidget.enableEventPropagation


enablePickingChildren

▸ enablePickingChildren(enable): DataSheet

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

DataSheet

this

Inherited from

BaseWidget.enablePickingChildren


enumerateNodes

▸ enumerateNodes(callback, target?): void

Executes a provided function once for each child node

Parameters

Name Type Description
callbackCallback<Node&gt;provided function
Optional targetQueryBuilder<any&gt;target to pass to callback as a second parameter

Returns

void

Inherited from

BaseWidget.enumerateNodes


execute

▸ execute(delegate): DataSheet

Executes delegate and return the result. It allows us to keep all initialization calls in one place, <br> and we do not need to scroll up or down in IDE to find how and where it was initialized.

Example

// All setters (.setName() for example) returns reference to the this.
// In order to modify inner object like LineStyle or Pattern, to get this object (property) we should call getter to get object reference.
// Then modify it as shown below in Option 1 or you can use execute methods shown in Option 2.
import {Group} from '@int/geotoolkit/scene/Group';
import {Rect} from '@int/geotoolkit/util/Rect';
// Option 1
const group = new Group()
.setName('MyGroup')
.setBounds(new Rect(0, 0, 42, 16))
.enableClipping(true)
.setTag({'type': 'sometype'});

group.getLineStyle().setPattern('pattern');
return group;

// Options 2 ( using execute method )
return group
.execute(function () {
this.getLineStyle()
.setPattern("pattern");
});

Parameters

Name Type Description
delegate(this: DataSheet) => voidFunction to execute

Returns

DataSheet

The result if any or this

Inherited from

BaseWidget.execute

▸ execute<T&gt;(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: DataSheet) => T

Returns

T

Inherited from

BaseWidget.execute


filter

▸ Protected filter(context): boolean

Filter node

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

flag filter flag ("true" to render node; "false" otherwise)

Inherited from

BaseWidget.filter


getActiveCell

▸ getActiveCell(): Cell

Get active cell

Returns

Cell

Active cell


getAnimationStyle

▸ getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

BaseWidget.getAnimationStyle


getAutoModelLimitsMode

▸ getAutoModelLimitsMode(): boolean

Get Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds

Returns

boolean

mode

Inherited from

BaseWidget.getAutoModelLimitsMode


getAutoModelLimitsStrategy

▸ getAutoModelLimitsStrategy(): ModelLimitsStrategy

Get Model Limits Logics Strategy

Returns

ModelLimitsStrategy

strategy

Inherited from

BaseWidget.getAutoModelLimitsStrategy


getBaseLayer

▸ getBaseLayer(index): Node

Return baseLayer at specified index

Parameters

Name Type Description
indexnumberindex at which to get the baseLayer for

Returns

Node

track

Inherited from

BaseWidget.getBaseLayer


getBaseLayers

▸ getBaseLayers<S&gt;(predicate, modify?): Iterator<Node&gt;

Return iterator by baseLayers nodes

Type parameters

NameType
Sextends Node<S&gt;

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

Inherited from

BaseWidget.getBaseLayers

▸ getBaseLayers(filter?, modify?): Iterator<Node&gt;

Returns an iterator for child baseLayers. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

An iterator for child overlays.

Inherited from

BaseWidget.getBaseLayers


getBaseLayersCount

▸ getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

BaseWidget.getBaseLayersCount


getBounds

▸ getBounds(): Rect

Get the bounds in the parents model space. If bounds are not set, then parent model limits are used.

Returns

Rect

current bounds

Inherited from

BaseWidget.getBounds


getCache

▸ getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache

Inherited from

BaseWidget.getCache


getCell

▸ getCell(row, column): Cell

Get cell

Parameters

Name Type Description
rownumberRow index
columnnumberColumn index

Returns

Cell

Cell


getChild

▸ getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

BaseWidget.getChild


getChildren

▸ getChildren<S&gt;(predicate, modify?): Iterator<S&gt;

Return iterator by child nodes

Type parameters

NameType
Sextends Node<S&gt;

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<S&gt;

Inherited from

BaseWidget.getChildren

▸ getChildren(filter?, modify?): Iterator<Node&gt;

Returns an iterator for child nodes. The iterator does not support adding or deleting items from children by default. If it is necessary to modify a collection of children, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getChildren(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all nodes if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

An iterator for child nodes.

Inherited from

BaseWidget.getChildren


getChildrenCount

▸ getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

BaseWidget.getChildrenCount


getClassName

▸ getClassName(): string

Returns

string

Inherited from

BaseWidget.getClassName


getClipStyle

▸ getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

BaseWidget.getClipStyle


getColumn

▸ getColumn(column): Column

Get a specific column

Parameters

Name Type Description
columnnumberColumn index of table

Returns

Column

Column


getColumnData

▸ getColumnData(column): (string | number)[]

Get data of a specific column

Parameters

Name Type Description
columnnumberColumn index of table

Returns

(string | number)[]

Data of column


getContentOrientation

▸ getContentOrientation(): Orientation

Return content orientation

Returns

Orientation

content orientation

Inherited from

BaseWidget.getContentOrientation


getContentsArea

▸ getContentsArea(transformation?): Rect

Return area without paddings. Model limits are mapped to content area, where children are layout.

Parameters

Name Type Description
Optional transformationTransformationscene transformation

Returns

Rect

Inherited from

BaseWidget.getContentsArea


getContentsTransform

▸ getContentsTransform(): Transformation

<code>getContentsTransform()</code> retrieves the world transformation of the node.

Returns

Transformation

transformation from model coordinates to bounds of the group

Inherited from

BaseWidget.getContentsTransform


getCss

▸ getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

BaseWidget.getCss


getCssClass

▸ getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

BaseWidget.getCssClass


getCssClasses

▸ getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

BaseWidget.getCssClasses


getCssTransform

▸ getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

BaseWidget.getCssTransform


getData

▸ getData(data?): object

get options

Parameters

Name Type Description
Optional dataunknownhow to extract data, null by default

Returns

object

Inherited from

BaseWidget.getData


getDataSet

▸ getDataSet(): number[][] | string[][]

Get current content data of the table

Returns

number[][] | string[][]

data


getDataSheetLimits

▸ getDataSheetLimits(): Rect

Get DataSheet limits

Returns

Rect

DataSheet model limits


getDataSheetVisibleModelLimits

▸ getDataSheetVisibleModelLimits(): Rect

Get DataSheet visible model limits

Returns

Rect

DataSheet visible model limits


getDesiredHeight

▸ getDesiredHeight(): string | number

Returns desired height of the group as a layoutable object This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired height ("undefined" by default)

Inherited from

BaseWidget.getDesiredHeight


getDesiredWidth

▸ getDesiredWidth(): string | number

Returns desired width of the group as a layoutable object. This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired width ("undefined" by default)

Inherited from

BaseWidget.getDesiredWidth


getDeviceLimits

▸ getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

BaseWidget.getDeviceLimits


getFillStyle

▸ getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

BaseWidget.getFillStyle


getHighlightedColumn

▸ getHighlightedColumn(): number

Get highlighted column

Returns

number

Column index


getHighlightedRow

▸ getHighlightedRow(): number

Get highlighted row

Returns

number

Row index


getId

▸ getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

BaseWidget.getId


getInfiniteMode

▸ getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

BaseWidget.getInfiniteMode


getInvalidateMethod

▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher&gt;

Gets invalidate method

Returns

AttributeCallback<EventDispatcher&gt;

method to invalidate this object

Inherited from

BaseWidget.getInvalidateMethod


getLayout

▸ getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout

Inherited from

BaseWidget.getLayout


getLayoutStyle

▸ getLayoutStyle(): LayoutStyle<string | number&gt;

return desired layout style

Returns

LayoutStyle<string | number&gt;

Inherited from

BaseWidget.getLayoutStyle


getLineStyle

▸ getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

BaseWidget.getLineStyle


getLocalTransform

▸ getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

BaseWidget.getLocalTransform


getMarginsStyle

▸ getMarginsStyle(): SpaceStyle<string | number&gt;

Return margins style

Returns

SpaceStyle<string | number&gt;

Inherited from

BaseWidget.getMarginsStyle


getModelLimits

▸ getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

BaseWidget.getModelLimits


getName

▸ getName(): string

Returns the node name

Returns

string

The node name

Inherited from

BaseWidget.getName


getNumberOfColumns

▸ getNumberOfColumns(): number

Get number of columns

Returns

number

Number of columns


getNumberOfRows

▸ getNumberOfRows(): number

Get number of rows

Returns

number

Number of rows


getOpacity

▸ getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

BaseWidget.getOpacity


getOpacityBlendMode

▸ getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

BaseWidget.getOpacityBlendMode


getOverlay

▸ getOverlay(index): Node

Return overlay at specified index

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

BaseWidget.getOverlay


getOverlayAt

▸ getOverlayAt(index): Node

Return overlay at specified index

Deprecated

since 4.2 use getOverlay instead

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

BaseWidget.getOverlayAt


getOverlayLayer

▸ getOverlayLayer(): Layer<Node&gt;

Returns manipulator overlay to draw shapes that should move with the model

Returns

Layer<Node&gt;

Inherited from

BaseWidget.getOverlayLayer


getOverlays

▸ getOverlays<S&gt;(predicate, modify?): Iterator<Node&gt;

Return iterator by overlays nodes

Type parameters

NameType
Sextends Node<S&gt;

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

Inherited from

BaseWidget.getOverlays

▸ getOverlays(filter?, modify?): Iterator<Node&gt;

Returns an iterator for child overlays. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

An iterator for child overlays.

Inherited from

BaseWidget.getOverlays


getOverlaysCount

▸ getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

BaseWidget.getOverlaysCount


getPaddingStyle

▸ getPaddingStyle(): SpaceStyle<string | number&gt;

Return padding style

Returns

SpaceStyle<string | number&gt;

padding

Inherited from

BaseWidget.getPaddingStyle


getParent

▸ getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

BaseWidget.getParent


getPreferredSize

▸ getPreferredSize(): Rect

Return preferred size to layout children

Returns

Rect

Inherited from

BaseWidget.getPreferredSize


getProperties

▸ getProperties(context?): OptionsOut

Gets all the properties pertaining to this object See Group.getProperties for details Keep in mind that widgets does not return scene-graph information

Parameters

Name Type Description
Optional contextISerializationContextserialization context

Returns

OptionsOut

properties

Inherited from

BaseWidget.getProperties


getProperty

▸ getProperty(name): any

Gets dynamic property by name. These properties can be used as a property bags

Parameters

Name Type Description
namestringproperty name

Returns

any

Inherited from

BaseWidget.getProperty


getPropertyKeys

▸ getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

BaseWidget.getPropertyKeys


getRenderingFilter

▸ getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

BaseWidget.getRenderingFilter


getResponsiveStyle

▸ getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

BaseWidget.getResponsiveStyle


getRoot

▸ getRoot(): Node

Returns root node. <br> If node doesn't have parent then it returns itself.

Returns

Node

the root node

Inherited from

BaseWidget.getRoot


getRow

▸ getRow(row): Row

Get a specific row

Parameters

Name Type Description
rownumberrow index of table

Returns

Row

Row


getRowData

▸ getRowData(row): string[] | number[]

Get data of a specific row

Parameters

Name Type Description
rownumberrow index of table

Returns

string[] | number[]

Data of row


getScaleScrollStrategy

▸ getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

BaseWidget.getScaleScrollStrategy


getSceneTransform

▸ getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

BaseWidget.getSceneTransform


getTag

▸ getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

BaseWidget.getTag


getTool

▸ getTool(): CompositeTool

Returns root tool associated to this widget

Returns

CompositeTool

Inherited from

BaseWidget.getTool


getToolByName

▸ getToolByName<T&gt;(toolName): Tools[T]

Returns the tool matching the given name.<br> This function also accepts tool 'path' instead of absolute name.<br> For example:<br> getToolByName("compositeTool.panningTools.trackPanning.TrackPanning")<br> Would return the same tool as <br> getToolByName("TrackPanning")<br> As long as there is only one tool named "TrackPanning" in this composite<br> See listToolsNames()<br>

Type parameters

NameType
Textends string

Parameters

Name Type Description
toolNameTThe tool name or path

Returns

Tools[T]

Overrides

BaseWidget.getToolByName


getToolByType

▸ getToolByType(toolType): AbstractTool

Returns the tool matching the given type. or null if nothing is matching the tool type<br> For example:<br> getToolByType(geotoolkit.controls.tools.Selection)<br> Would return the same tool as<br> getToolByName("pick")<br>

Parameters

Name Type Description
toolTypeClassType<any&gt;toolType of the tool

Returns

AbstractTool

Inherited from

BaseWidget.getToolByType


getVisible

▸ getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

BaseWidget.getVisible


getVisibleDeviceLimits

▸ getVisibleDeviceLimits(ignoreModelLimits?): Rect

Return visible device limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

BaseWidget.getVisibleDeviceLimits


getVisibleModelLimits

▸ getVisibleModelLimits(ignoreModelLimits?): Rect

Return visible model limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

BaseWidget.getVisibleModelLimits


getWorldTransform

▸ getWorldTransform(): Transformation

Retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.

Returns

Transformation

Inherited from

BaseWidget.getWorldTransform


getZIndex

▸ getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

BaseWidget.getZIndex


hasCssClass

▸ hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

BaseWidget.hasCssClass


hasEventListener

▸ hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

BaseWidget.hasEventListener


hideColumns

▸ hideColumns(columns): DataSheet

Hide columns

Parameters

Name Type Description
columnsnumber[]Array of column indices to hide

Returns

DataSheet

this


hideRows

▸ hideRows(rows): DataSheet

Hide rows

Parameters

Name Type Description
rowsnumber[]Array of row indices to hide

Returns

DataSheet

this


indexOfBaseLayer

▸ indexOfBaseLayer(baseLayer): number

Return index of overlay ( index of the specified child or -1 if baseLayer is not found)

Parameters

Name Type Description
baseLayerNodebaseLayer to check index

Returns

number

Inherited from

BaseWidget.indexOfBaseLayer


indexOfChild

▸ indexOfChild(node): number

Return index of child ( index of the specified child or -1 if node is not found)

Parameters

Name Type Description
nodeNodenode to check index

Returns

number

Inherited from

BaseWidget.indexOfChild


indexOfOverlay

▸ indexOfOverlay(overlay): number

Return index of overlay ( index of the specified child or -1 if overlay is not found)

Parameters

Name Type Description
overlayNodeoverlay to check index

Returns

number

Inherited from

BaseWidget.indexOfOverlay


initializeTools

▸ Protected initializeTools(options?): DataSheet

function call in the constructor to initialize tools in the widget

Parameters

Name Type Description
Optional optionsAnyRecordtools options

Returns

DataSheet

this

Inherited from

BaseWidget.initializeTools


insertBaseLayer

▸ insertBaseLayer(index, baseLayer): DataSheet

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

DataSheet

this

Inherited from

BaseWidget.insertBaseLayer


insertChild

▸ insertChild(index, node): DataSheet

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

DataSheet

this

Inherited from

BaseWidget.insertChild


insertColumn

▸ insertColumn(index, columnData, columnTitle?): DataSheet

Insert a new column at a specified index in DataSheet

Parameters

Name Type Description
indexnumberColumn index
columnDatastring[]List of data for each cell of the new column, any missing cell data will be set to empty string by default
Optional columnTitlestringTitle of new column

Returns

DataSheet

this


insertOverlay

▸ insertOverlay(index, overlay): DataSheet

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

DataSheet

this

Inherited from

BaseWidget.insertOverlay


insertRow

▸ insertRow(index, rowData, rowTitle?): DataSheet

Insert a new row at a specified index in DataSheet

Parameters

Name Type Description
indexnumberRow index
rowDatastring[]List of data for each cell of the new row, any missing cell data will be set to empty string by default
Optional rowTitlestringTitle of new row

Returns

DataSheet

this


invalidate

▸ invalidate(bounds?, force?): DataSheet

Invalidate node

Parameters

Name Type Description
Optional boundsRectoptional rectangular area to be invalidated, or force flag if rectangle is empty
Optional forcebooleanoptional boolean parameter that can force invalidation

Returns

DataSheet

this

Inherited from

BaseWidget.invalidate


invalidateLayout

▸ invalidateLayout(propagate?): DataSheet

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

DataSheet

this

Inherited from

BaseWidget.invalidateLayout


invalidateParent

▸ invalidateParent(bounds?, force?): DataSheet

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

DataSheet

this

Inherited from

BaseWidget.invalidateParent


isClippingEnabled

▸ isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

BaseWidget.isClippingEnabled


isDisposed

▸ isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

BaseWidget.isDisposed


isEventPropagationEnabled

▸ isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

BaseWidget.isEventPropagationEnabled


isHorizontalFlip

▸ isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

flip

Inherited from

BaseWidget.isHorizontalFlip


isLayoutInvalidated

▸ isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

BaseWidget.isLayoutInvalidated


isNotificationEnabled

▸ isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

BaseWidget.isNotificationEnabled


isPickingChildrenEnabled

▸ isPickingChildrenEnabled(): boolean

Returns if picking children is enabled or not for this node.

Returns

boolean

pickingChildren

Inherited from

BaseWidget.isPickingChildrenEnabled


isSelectable

▸ isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

BaseWidget.isSelectable


isSilent

▸ isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

BaseWidget.isSilent


isVerticalFlip

▸ isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

flip

Inherited from

BaseWidget.isVerticalFlip


listToolsNames

▸ listToolsNames(): string[]

List all the tools contained in this composite. Prepend their parent tools parent using a '.'.

Returns

string[]

Inherited from

BaseWidget.listToolsNames


loadTemplate

▸ loadTemplate(template, registry?): void

Load template loads the saved visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data

Parameters

Name Type Description
templatestringtemplate to be applied to current widget
Optional registryRegistryregistry

Returns

void

Inherited from

BaseWidget.loadTemplate


mergeCells

▸ mergeCells(firstCell, lastCell): MergedCell

Merge cells

Parameters

Name Type Description
firstCellCellFirst cell of merged rectangle
lastCellCellLast cell of merged rectangle

Returns

MergedCell

Merged cell


moveTo

▸ moveTo(area, vAlign?, hAlign?): DataSheet

MoveTo position of node to specified area

Parameters

Name Type Description
areaRectspecified area
Optional vAlignstringvertical alignment. It can be &quot;top&quot;, &quot;bottom&quot;, &quot;center&quot;.
Optional hAlignstringhorizontal alignment It can be &quot;left&quot;, &quot;right&quot;, &quot;center&quot;.

Returns

DataSheet

this

Inherited from

BaseWidget.moveTo


notify

▸ notify<E&gt;(type, source, args?): DataSheet

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event
sourceDataSheetsource who called the event
Optional argsEventMap[E]event arguments

Returns

DataSheet

this

Overrides

BaseWidget.notify


notifyRoot

▸ Protected notifyRoot(event, source, args?): Node

Notify an even to root node

Parameters

Name Type Description
eventstringtype of event
sourceNodesource who called the event
Optional argsanyevent arguments

Returns

Node

this

Inherited from

BaseWidget.notifyRoot


off

▸ off<E&gt;(type?, callback?): DataSheet

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: DataSheet, args: EventMap[E]) => voidfunction to be called

Returns

DataSheet

this

Overrides

BaseWidget.off


on

▸ on<E&gt;(type, callback): DataSheet

Attach listener on event that will be called whenever the specified event is delivered to the target <p> If the callback function is already in the list of event listeners for this target, the function is not added a second time. </p> <p> If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target. </p>

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: DataSheet, args: EventMap[E]) => voidto be called

Returns

DataSheet

this

Overrides

BaseWidget.on


onBoundsChanged

▸ Protected onBoundsChanged(bounds): DataSheet

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

DataSheet

this

Inherited from

BaseWidget.onBoundsChanged


onChildAdded

▸ Protected onChildAdded(child): void

This method is called it child or children are added

Parameters

Name Type Description
childNode | Iterator<Node&gt;added child

Returns

void

Inherited from

BaseWidget.onChildAdded


onChildRemoved

▸ Protected onChildRemoved(child): void

This method is called it child or children are removed

Parameters

Name Type Description
childNoderemoved child

Returns

void

Inherited from

BaseWidget.onChildRemoved


onParentChanged

▸ Protected onParentChanged(node): DataSheet

This method is called when parent changes. Do not call it directly.

Parameters

Name Type Description
nodeNodenode to change parent

Returns

DataSheet

this

Inherited from

BaseWidget.onParentChanged


onVisibilityChanged

▸ Protected onVisibilityChanged(): void

This method is called if visibility is changed. Send event Events.VisibilityChanged

Returns

void

Inherited from

BaseWidget.onVisibilityChanged


postRendering

▸ Protected postRendering(context, callback?): void

To be called after rendering, used for PDF output

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering

Returns

void

Inherited from

BaseWidget.postRendering


preRendering

▸ Protected preRendering(context, callback?): void

Occurs before child rendering

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering of geometry

Returns

void

Inherited from

BaseWidget.preRendering


rebuild

▸ rebuild(force?, changes?): DataSheet

Rebuild node. This method resets state, cache, and invalidate node.

Parameters

Name Type Description
Optional forcebooleanoptional boolean parameter that can force invalidation
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

DataSheet

this

Inherited from

BaseWidget.rebuild


registerAnimationStyle

▸ registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

BaseWidget.registerAnimationStyle


removeBaseLayer

▸ removeBaseLayer(baseLayer): DataSheet

Remove child baseLayer

Parameters

Name Type Description
baseLayerNode | Node[]baseLayer or array of nodes to be removed

Returns

DataSheet

this

Inherited from

BaseWidget.removeBaseLayer


removeChild

▸ removeChild(node, disposeChildren?): DataSheet

Remove child node

Parameters

Name Type Description
nodeNode | Node[]node or array of nodes to be removed
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

DataSheet

this

Inherited from

BaseWidget.removeChild


removeColumn

▸ removeColumn(index): DataSheet

Remove a column

Parameters

Name Type Description
indexnumberColumn index to remove

Returns

DataSheet

this


removeCssClass

▸ removeCssClass(cssclass): DataSheet

Removes css class from node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

DataSheet

this

Inherited from

BaseWidget.removeCssClass


removeInvalidateHandler

▸ removeInvalidateHandler(handler): DataSheet

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

DataSheet

this

Inherited from

BaseWidget.removeInvalidateHandler


removeOverlay

▸ removeOverlay(overlay): DataSheet

Remove child overlay

Parameters

Name Type Description
overlayNode | Node[]overlay or array of nodes to be removed

Returns

DataSheet

this

Inherited from

BaseWidget.removeOverlay


removeRow

▸ removeRow(index): DataSheet

Remove a row

Parameters

Name Type Description
indexnumberRow index to remove

Returns

DataSheet

this


render

▸ render(context): void

Render group

Parameters

Name Type Description
contextRenderingContextcontext to render group

Returns

void

Inherited from

BaseWidget.render


renderAsync

▸ renderAsync(context, callback): void

Render node in asynchronous mode. This implementation doesn't support cache for now.

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function

Returns

void

Inherited from

BaseWidget.renderAsync


renderBackground

▸ Protected renderBackground(context, bounds): DataSheet

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

DataSheet

this

Inherited from

BaseWidget.renderBackground


renderBaseLayers

▸ Protected renderBaseLayers(context): DataSheet

Render baseLayers on bottom of cache. This method does nothing, but can be implemented to render graphics on bottom of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render baseLayers

Returns

DataSheet

this

Inherited from

BaseWidget.renderBaseLayers


renderBaseLayersAsync

▸ Protected renderBaseLayersAsync(context, callback): void

Render baseLayers on bottom of cache in asynchronous mode. This method calls renderBaseLayers

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

BaseWidget.renderBaseLayersAsync


renderChildren

▸ Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

BaseWidget.renderChildren


renderChildrenAsync

▸ Protected renderChildrenAsync(context, callback): void

Render children async

Parameters

Name Type Description
contextRenderingContextRendering Context
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

BaseWidget.renderChildrenAsync


renderContent

▸ Protected renderContent(context): void

render to specified context. This method calls preRendering, renderChildren, postRendering

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

BaseWidget.renderContent


renderContentAsync

▸ Protected renderContentAsync(context, callback): void

Render children in asynchronous mode

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

BaseWidget.renderContentAsync


renderOverlays

▸ Protected renderOverlays(context): DataSheet

Render overlays on top of cache. This method does nothing, but can be implemented to render graphics on top of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render overlays

Returns

DataSheet

this

Inherited from

BaseWidget.renderOverlays


renderOverlaysAsync

▸ Protected renderOverlaysAsync(context, callback): void

Render overlays on top of cache in asynchronous mode. This method calls renderOverlays

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

BaseWidget.renderOverlaysAsync


resumeUpdate

▸ resumeUpdate(rebuild?, changes?): DataSheet

Resume auto update

Parameters

Name Type Description
Optional rebuildbooleanforce rebuild
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

DataSheet

this

Inherited from

BaseWidget.resumeUpdate


rotate

▸ rotate(theta, x, y): DataSheet

Rotate bounds around a given coordinate

Parameters

Name Type Description
thetanumberangle to rotate node, in radians
xnumberx coordinate to rotate around
ynumbery coordinate to rotate around

Returns

DataSheet

this

Inherited from

BaseWidget.rotate


saveTemplate

▸ saveTemplate(registry?): string

Save template saves visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data

Parameters

Name Type Description
Optional registryRegistryregistry

Returns

string

Inherited from

BaseWidget.saveTemplate


scale

▸ scale(xx, yy): DataSheet

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

DataSheet

this

Inherited from

BaseWidget.scale


setActiveCell

▸ setActiveCell(row, column?, editCell?): DataSheet

Set active cell

Parameters

Name Type Description
rownumberRow index
Optional columnnumberColumn index
Optional editCellbooleanTrue to also set cell to edit mode, false otherwise

Returns

DataSheet

this


setAnimationStyle

▸ setAnimationStyle(animationStyle): DataSheet

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

DataSheet

Inherited from

BaseWidget.setAnimationStyle


setAutoModelLimitsMode

▸ setAutoModelLimitsMode(mode): DataSheet

Set Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds. This is convenient method. It creates AutoModelLimitsStrategy

Parameters

Name Type Description
modebooleanModel Limits Logics to be used

Returns

DataSheet

this

Inherited from

BaseWidget.setAutoModelLimitsMode


setAutoModelLimitsStrategy

▸ setAutoModelLimitsStrategy(strategy): DataSheet

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

DataSheet

this

Inherited from

BaseWidget.setAutoModelLimitsStrategy


setBounds

▸ setBounds(bounds): DataSheet

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsTypebound of the node in the parent coordinates

Returns

DataSheet

this

Inherited from

BaseWidget.setBounds


setCache

▸ setCache(cache, rebuild?): DataSheet

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

DataSheet

this

Inherited from

BaseWidget.setCache


setChild

▸ setChild(index, node): DataSheet

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

DataSheet

this

Inherited from

BaseWidget.setChild


setClipStyle

▸ setClipStyle(style): DataSheet

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

DataSheet

this

Inherited from

BaseWidget.setClipStyle


setColumnsWidth

▸ setColumnsWidth(columnWidth): DataSheet

Set columns width

Parameters

Name Type Description
columnWidthnumber[]Array of column width

Returns

DataSheet

this


setContentEditable

▸ setContentEditable(editable): DataSheet

Set content to be editable

Parameters

Name Type Description
editablebooleanTrue to set table content to be editable, false otherwise

Returns

DataSheet

this


setContentOrientation

▸ setContentOrientation(orientation): DataSheet

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

DataSheet

this

Inherited from

BaseWidget.setContentOrientation


setCss

▸ setCss(style, merge?): DataSheet

Sets CSS style. This style will be applied for all inserted elements

Parameters

Name Type Description
styleTypeCSS style to be applied to inserted elements
Optional mergebooleanmerge flag

Returns

DataSheet

this

Inherited from

BaseWidget.setCss


setCssClass

▸ setCssClass(name): DataSheet

Sets css class name of the node to be used to apply CSS style

Parameters

Name Type Description
namestringcss class name of the node

Returns

DataSheet

this

Inherited from

BaseWidget.setCssClass


setCssTransform

▸ setCssTransform(transform): DataSheet

Set CSS transformation

Parameters

Name Type Description
transformstring | Transformationtransformation css transformation instruction or Transformation instance

Returns

DataSheet

this

Inherited from

BaseWidget.setCssTransform


setDesiredHeight

▸ setDesiredHeight(value, silent?): DataSheet

Sets desired height of the group as a layoutable object

Parameters

Name Type Description
valuestring | numberdesired height to set, use 'auto' for automatic desired height
Optional silentbooleansilent setting

Returns

DataSheet

this

Inherited from

BaseWidget.setDesiredHeight


setDesiredWidth

▸ setDesiredWidth(value, silent?): DataSheet

Sets desired width of the group as a layoutable object

Parameters

Name Type Description
valuestring | numberdesired width to set
Optional silentbooleansilent setting

Returns

DataSheet

this

Inherited from

BaseWidget.setDesiredWidth


setFillStyle

▸ setFillStyle(fillStyle, merge?): DataSheet

Sets fill style

Parameters

Name Type Description
fillStyleTypea new fill style
Optional mergebooleantrue if you want to merge fillStyle with existing attribute, false by default

Returns

DataSheet

this

Inherited from

BaseWidget.setFillStyle


setHorizontalFlip

▸ setHorizontalFlip(enable): DataSheet

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

DataSheet

this

Inherited from

BaseWidget.setHorizontalFlip


setId

▸ setId(id): DataSheet

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

DataSheet

this

Inherited from

BaseWidget.setId


setInfiniteMode

▸ setInfiniteMode(infinityMode): DataSheet

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

DataSheet

this

Inherited from

BaseWidget.setInfiniteMode


setLayout

▸ setLayout(layout): DataSheet

Associate layout with a group.

Parameters

Name Type Description
layoutRecord<string, any&gt; | Layoutlayout instance to be set or layout properties to apply

Returns

DataSheet

this

Inherited from

BaseWidget.setLayout


setLayoutInvalidated

▸ Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

BaseWidget.setLayoutInvalidated


setLayoutStyle

▸ setLayoutStyle(layoutStyle, silent?, merge?): DataSheet

specify desired layout style

Parameters

Name Type Description
layoutStyleLayoutStyle<string | number&gt; | Options<string | number&gt;desired layout style
Optional silentbooleansilent setting
Optional mergebooleantrue if you want to merge layoutStyle with existing attribute, false by default

Returns

DataSheet

this

Inherited from

BaseWidget.setLayoutStyle


setLineStyle

▸ setLineStyle(lineStyle, merge?): DataSheet

Sets border color Returns this

Parameters

Name Type Description
lineStyleTypeline style or options
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

DataSheet

this

Inherited from

BaseWidget.setLineStyle


setLocalTransform

▸ setLocalTransform(localTransform, force?): DataSheet

Sets local transformation to be used to transform from local to parent coordinate

Parameters

Name Type Description
localTransformTransformationlocal transformation for this node
Optional forcebooleanboolean flag to force update event if transformations are equal, false by default

Returns

DataSheet

this

Inherited from

BaseWidget.setLocalTransform


setMarginsStyle

▸ setMarginsStyle(margins, merge?): DataSheet

Sets margins style

Parameters

Name Type Description
marginsType<string | number&gt;margins style
Optional mergebooleantrue if you want to merge marginsStyle with existing attribute, false by default

Returns

DataSheet

this

Inherited from

BaseWidget.setMarginsStyle


setModelLimits

▸ setModelLimits(limits): DataSheet

Sets inner model limits

Parameters

Name Type Description
limitsTypeinner limits

Returns

DataSheet

this

Inherited from

BaseWidget.setModelLimits


setName

▸ setName(name): DataSheet

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

DataSheet

this

Inherited from

BaseWidget.setName


setNotification

▸ setNotification(notify, force?): DataSheet

set notification state

Parameters

Name Type Description
notifybooleanflag set to invalidate parent or not
Optional forcebooleantrue if parent should be invalidated immediately

Returns

DataSheet

this

Inherited from

BaseWidget.setNotification


setNumberOfColumns

▸ setNumberOfColumns(columns): DataSheet

Set number of columns

Parameters

Name Type Description
columnsnumberThe number of columns

Returns

DataSheet

this


setNumberOfRows

▸ setNumberOfRows(rows): DataSheet

Set number of rows

Parameters

Name Type Description
rowsnumberThe number of rows

Returns

DataSheet

this


setOpacity

▸ setOpacity(opacity, blendMode?): DataSheet

Sets node opacity

Parameters

Name Type Description
opacitynumbernode opacity from 0 to 1
Optional blendModeBlendModeopacity blend mode. If it is normal, opacity will be replaced.

Returns

DataSheet

this

Inherited from

BaseWidget.setOpacity


setPaddingStyle

▸ setPaddingStyle(paddingStyle, merge?): DataSheet

Sets padding style

Parameters

Name Type Description
paddingStyleType<string | number&gt;padding style
Optional mergebooleantrue if you want to merge paddingStyle with existing attribute, false by default

Returns

DataSheet

this

Inherited from

BaseWidget.setPaddingStyle


setParent

▸ setParent(parent): DataSheet

Sets parent node. Don't call this method directly. It is internal method.

Parameters

Name Type Description
parentNodea parent node

Returns

DataSheet

this

Inherited from

BaseWidget.setParent


setProperties

▸ setProperties(properties?): DataSheet

Sets all the properties pertaining to this object Keep in mind that widgets does not accept scene-graph information NOTE properties.children property will be ignored

Parameters

Name Type Description
Optional propertiesOptionsproperties

Returns

DataSheet

this

Inherited from

BaseWidget.setProperties


setProperty

▸ setProperty(name, value): DataSheet

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

DataSheet

this

Inherited from

BaseWidget.setProperty


setRenderingFilter

▸ setRenderingFilter(filter): DataSheet

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

DataSheet

this

Inherited from

BaseWidget.setRenderingFilter


setResponsiveStyle

▸ setResponsiveStyle(style): DataSheet

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

DataSheet

this

Inherited from

BaseWidget.setResponsiveStyle


setRowsHeight

▸ setRowsHeight(rowHeight): DataSheet

Set rows height

Parameters

Name Type Description
rowHeightnumber[]Array of row height

Returns

DataSheet

this


setScaleScrollStrategy

▸ setScaleScrollStrategy(strategy?): DataSheet

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

DataSheet

this

Inherited from

BaseWidget.setScaleScrollStrategy


setSelectable

▸ setSelectable(selectable): DataSheet

Allows to select node. If node is not selectable then child node is not selectable.

Parameters

Name Type Description
selectablebooleanflag to allow node selection

Returns

DataSheet

this

Inherited from

BaseWidget.setSelectable


setSilent

▸ setSilent(bool): DataSheet

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

DataSheet

this

Inherited from

BaseWidget.setSilent


setTableBackground

▸ setTableBackground(fillStyle): DataSheet

Set table background

Parameters

Name Type Description
fillStylestring | FillStyleNew table fill style

Returns

DataSheet

this


setTag

▸ setTag(tag): DataSheet

Allows the user to associate any arbitrary object with the node.

Parameters

Name Type Description
taganyThe object to be associated with the node.

Returns

DataSheet

this

Inherited from

BaseWidget.setTag


setTool

▸ Protected setTool(tool): DataSheet

Set root tool associated to this widget

Parameters

Name Type Description
toolCompositeTooltool to be set

Returns

DataSheet

Inherited from

BaseWidget.setTool


setVerticalFlip

▸ setVerticalFlip(flip): DataSheet

Set vertical flip of the representation

Parameters

Name Type Description
flipbooleanflag to set the vertical flip of the representation

Returns

DataSheet

this

Inherited from

BaseWidget.setVerticalFlip


setVisible

▸ setVisible(value): DataSheet

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

DataSheet

this

Inherited from

BaseWidget.setVisible


setVisibleModelLimits

▸ setVisibleModelLimits(visibleModelBounds, deviceBounds?): DataSheet

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

DataSheet

this

Inherited from

BaseWidget.setVisibleModelLimits


setZIndex

▸ setZIndex(value): DataSheet

Sets z-index for node (set null for default)

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

DataSheet

this

Inherited from

BaseWidget.setZIndex


shear

▸ shear(shx, shy): DataSheet

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

DataSheet

this

Inherited from

BaseWidget.shear


suspendUpdate

▸ suspendUpdate(): DataSheet

Suspend auto update

Returns

DataSheet

this

Inherited from

BaseWidget.suspendUpdate


toString

▸ toString(): string

Returns a string representation of this object (generally the classname)

Returns

string

A string representation

Inherited from

BaseWidget.toString


translate

▸ translate(tx, ty): DataSheet

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

DataSheet

this

Inherited from

BaseWidget.translate


unhideAllColumns

▸ unhideAllColumns(): DataSheet

Unhide all columns

Returns

DataSheet

this


unhideAllRows

▸ unhideAllRows(): DataSheet

Unhide all rows

Returns

DataSheet

this


unhideColumns

▸ unhideColumns(columns): DataSheet

Unhide columns

Parameters

Name Type Description
columnsnumber[]Array of column indices

Returns

DataSheet

this


unhideRows

▸ unhideRows(rows): DataSheet

Unhide rows

Parameters

Name Type Description
rowsnumber[]Array of row indices

Returns

DataSheet

this


unmergeCells

▸ unmergeCells(cell): DataSheet

Unmerge cells

Parameters

Name Type Description
cellCellAny cell of merged rectangle

Returns

DataSheet

this


unregisterAnimationStyle

▸ unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

BaseWidget.unregisterAnimationStyle


updateLayout

▸ updateLayout(targets?): DataSheet

Updates layout(s)

Fires

Events.LayoutUpdated

Parameters

Name Type Description
Optional targetsILayoutable[]optional parameter about which element to layout

Returns

DataSheet

this

Inherited from

BaseWidget.updateLayout


updateSceneTransformation

▸ updateSceneTransformation(): DataSheet

Update scene transformation

Returns

DataSheet

this

Inherited from

BaseWidget.updateSceneTransformation


updateState

▸ updateState(regions?, changes?): DataSheet

Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph

Parameters

Name Type Description
Optional regionsRect[]optional array to return invalid rectangles in the parent coordinates
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

DataSheet

this

Inherited from

BaseWidget.updateState


updateSuspended

▸ updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

BaseWidget.updateSuspended


updateTimeStamp

▸ Protected updateTimeStamp(): DataSheet

Update time stamp to indicate that Node or Children has been changed.

Returns

DataSheet

this

Inherited from

BaseWidget.updateTimeStamp


enableSceneGraphNotification

▸ Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

BaseWidget.enableSceneGraphNotification


findParent

▸ Static findParent<T&gt;(node, classType, filter?): InstanceType<T&gt;

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any&gt;

Parameters

Name Type Description
nodeNodenode to start search
classTypeTtype of the class to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

InstanceType<T&gt;

Inherited from

BaseWidget.findParent

▸ Static findParent(node, classType, filter?): Node

Find root of the node with specified type

Parameters

Name Type Description
nodeNodenode to start search
classTypestringinterface name to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

Node

Inherited from

BaseWidget.findParent


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

BaseWidget.getClassName


isSceneGraphNotificationEnabled

▸ Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

BaseWidget.isSceneGraphNotificationEnabled