Skip to main content

ObjectPropertyBag

Constructors

new ObjectPropertyBag()

new ObjectPropertyBag(source, x): ObjectPropertyBag

Parameters

ParameterTypeDefault value
sourceanyundefined
xanynull

Returns

ObjectPropertyBag

Source

src/widgets.ts:82

Properties

PropertyType
sourceany

Methods

get()

get(propertyName): object

Gets the value of the specified property

Parameters

ParameterTypeDescription
propertyNamestring

Returns

object

Source

src/widgets.ts:131


getProperties()

getProperties(): Property[]

Returns

Property[]

Source

src/widgets.ts:151


getProperty()

getProperty(name): Property

Gets property by name (case-sensitive).

Parameters

ParameterTypeDescription
namestring

Returns

Property

Source

src/widgets.ts:158


hasProperty()

hasProperty(name): boolean

Parameters

ParameterTypeDescription
namestring

Returns

boolean

Source

src/widgets.ts:168


resetDefault()

resetDefault(): void

Clears the previously remembered default settings for viewers of this type. See also: [setDefault]

Returns

void

Source

src/widgets.ts:189


set()

set(propertyName, propertyValue): void

Sets the value of the specified property

Parameters

ParameterTypeDescription
propertyNamestring
propertyValueobject

Returns

void

Source

src/widgets.ts:140


setAll()

setAll(params): void

Sets all properties according to the passed object containing key-value pairs

Parameters

ParameterType
paramsobject

Returns

void

Source

src/widgets.ts:145


setDefault()

setDefault(data, style): void

Sets the current state of viewer properties as the default configuration used to create new viewer instances of this type. Equivalent to the "Pick Up / Apply | Set as Default" context menu command. Read more about viewer commands: https://datagrok.ai/help/visualize/viewers/#common-actions

Parameters

ParameterTypeDefault valueDescription
databooleanfalseindicates if data settings should be copied.
stylebooleantrueindicates if style (non-data) settings should be copied.

Returns

void

Source

src/widgets.ts:177


setDefaultProperty()

static setDefaultProperty(viewerType, propertyName, propertyValue): void

Parameters

ParameterType
viewerTypestring
propertyNamestring
propertyValueany

Returns

void

Source

src/widgets.ts:184