Show:

A base class for Scale Data Editor.

Constructor

A.ScaleDataScale

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_afterEditedValueChange

() protected

Fired after the editedValue attribute is set.

_afterLabelChange

() protected

<p>Fired after the <code>label</code> attribute is set.</p>

_afterRequiredChange

() protected

<p>Fired after the <code>required</code> attribute is set.</p>

_afterVisibleChange

() protected

<p>Fired after the <code>visible</code> attribute is set.</p>

_filterInt

(
  • value
)
Number protected

Stricter way to parse int values.

Parameters:

Returns:

_onHigherValueChange

() protected

Fired when the lower input's value changes.

_onLowerValueChange

() protected

Fired when the lower input's value changes.

_setRangeValue

(
  • val
)
Array protected

Sets one of the range attributes (either originalValue or editedValue). Makes sure it's an array of at least 2 positions.

Parameters:

  • val Array

Returns:

Array:

_uiSetEditedValue

(
  • editedValue
)
protected

Updates the ui according to the value of the editedValue attribute.

Parameters:

  • editedValue Array

_uiSetLabel

(
  • label
)
protected

<p>Updates the ui according to the value of the <code>label</code> attribute.</p>

Parameters:

  • label String

_uiSetRequired

(
  • required
)
protected

<p>Updates the ui according to the value of the <code>required</code> attribute.</p>

Parameters:

  • required Object

_uiSetVisible

(
  • visible
)
protected

<p>Updates the ui according to the value of the <code>visible</code> attribute.</p>

Parameters:

  • visible Object

destructor

() protected

<p>Destructor lifecycle implementation for the <code>A.DataEditor</code> class. Lifecycle.</p>

initializer

() protected

Constructor for the A.ScaleDataEditor. Lifecycle.

isEmpty

() Boolean

Returns true if this edited value array has no elements on 0 and 1 positions.

Returns:

Boolean:

isValid

() Boolean

If the Scale Data Editor has Numbers on both inputs this will return true.

Returns:

Boolean:

Properties

ATTRS

Object static

Static property used to define the default attribute configuration for the A.ScaleDataEditor.

Attributes

editedValue

Array

The value after edition.

label

String

<p>The label to be used by this boolean editor.</p>

Default: ''

node

Node

<p>The node where the editor UI is rendered.</p>

originalValue

Array

The value to be edited.

required

<p>Defines if the data editor is required or not.</p>

Default: false

strings

Object

<p>Collection of strings used to label elements of the UI.</p>

visible

Boolean

<p>Determines if <code>DataEditor</code> is visible or not.</p>

Default: false