HTMLWidget

parasql.widget. HTMLWidget

The HTMLWidget class allows you to build your own custom widget by reserving a section of screen real estate for use by your code.

Extends

Methods

getContentDiv() → {HTMLDivElement}

Typically your code will call this method after it receives a render event.

Description:
  • Typically your code will call this method after it receives a render event.

Returns:

The div element currently in use by this HTMLWidget; the value returned will change with each rendering. Your code can use this as the root element into which you render additional elements.

Type
HTMLDivElement

getWidgetId() → (non-null) {string}

Inherited From:
Returns:

Returns an immutable string that uniquely identifies this widget.

Type
string

isDisabled() → {boolean}

Inherited From:
Returns:
Type
boolean

printWidget()

Causes this widget to print itself.

Description:
  • Causes this widget to print itself.

Inherited From:

redisplay()

Redisplays this widget.

Description:
  • Redisplays this widget.

Inherited From:

setDisabled(flag)

WARNING: Subclasses overriding this method must not trigger a redisplay (causes an infinite loop).

Description:
  • WARNING: Subclasses overriding this method must not trigger a redisplay (causes an infinite loop).

Inherited From:
Parameters:
Name Type Description
flag boolean

If true, this widget will be rendered as disabled.