new RatingWidget()
- 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:
- Overrides:
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 :string
- Source:
- Overrides:
Type:
- string
Methods
_getHtmlStr() → {string}
- Source:
- Overrides:
This is separated so it can be extended (in the analog-scale widget)
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.
_reset()
- Source:
- Overrides:
Resets widget
_stepsBetweenHtmlStr(props) → {string}
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
props |
object | The range properties. |
Returns:
HTML string
- Type
- string
_updateMercury(completeness)
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
completeness |
number | level of mercury |
disable()
- Source:
- Overrides:
Disables widget
enable()
- Source:
- Overrides:
Enables widget
update()
- Source:
- Overrides:
Updates widget