AnalogScaleWidget

AnalogScaleWidget

new AnalogScaleWidget()

Source:

Extends

Members

(static) selector :string

Source:
Type:
  • string

(readonly) downloadButtonHtml :Element

Source:
Inherited From:

Returns a HTML document fragment for a download button.

Type:
  • Element

(readonly) originalInputValue :*

Source:
Inherited From:

Obtains the value from the original form control the widget is instantiated on. This form control is often hidden by the widget.

Type:
  • *

props :object

Source:
Overrides:
Type:
  • object

(readonly) resetButtonHtml :Element

Source:
Inherited From:

Returns a HTML document fragment for a reset button.

Type:
  • Element

value :*

Source:
Overrides:
Type:
  • *

Methods

_getHtmlStr() → {string}

Source:
Overrides:
Returns:

HTML string

Type
string

_getProps() → {object}

Source:
Inherited From:

Not meant to be overridden, but could be. Recommend to extend get props() instead.

Returns:

props object

Type
object

_init()

Source:
Overrides:

Meant to be overridden, but automatically called.

_renderLabels()

Source:

(re-)Renders the widget labels based on the current content of .question-label.active

_reset()

Source:
Inherited From:

Resets widget

_setResizeListener()

Source:

Stretch the question to full page height. Doing this with pure css flexbox using "flex-direction: column" interferes with the Grid theme because that theme relies on flexbox with "flex-direction: row".

_stepsBetweenHtmlStr(props) → {string}

Source:
Inherited From:
Parameters:
Name Type Description
props object

The range properties.

Returns:

HTML string

Type
string

_stretchHeight()

Source:

Stretches height

_updateLabels()

Source:

Updates labels

_updateMercury(completeness)

Source:
Overrides:
Parameters:
Name Type Description
completeness number

level of mercury

disable()

Source:
Inherited From:

Disables widget

enable()

Source:
Inherited From:

Enables widget

update()

Source:
Overrides:

Updates with labels