Show:

A base class for Radio Group Data Editor.

Constructor

A.RadioGroupDataEditor

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_afterEditedValueChange

() protected

Fired after the editedValue attribute is set.

_afterInlineChange

() protected

Fired after the inline attribute is set.

_afterLabelChange

() protected

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

_afterRadioLabelsChange

() protected

Fired after the radioLabels attribute is set.

_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>

_createRadioGroup

(
  • label
)
Node protected

Creates a radio element node.

Parameters:

  • label String

Returns:

Node:

_onClickRadioButton

(
  • event
)
protected

Fired when a radio button is clicked.

Parameters:

_uiSetEditedValue

(
  • editedValue
)
protected

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

Parameters:

_uiSetInline

(
  • inline
)
protected

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

Parameters:

  • inline Boolean

_uiSetLabel

(
  • label
)
protected

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

Parameters:

  • label String

_uiSetRadioLabels

(
  • value
)
protected

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

Parameters:

  • value Array

_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.RadioGroupDataEditor. Lifecycle.

isEmpty

()

<p>Returns <code>true</code> if this edited value has no elements. This should be overridden by subclasses, otherwise it always returns <code>false</code>.</p>

isValid

() Boolean

<p>If the data editor is required and empty this will return false.</p>

Returns:

Boolean:

Properties

ATTRS

Object static

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

Attributes

editedValue

Number

The value after edition.

Default: 0

inline

Boolena

Determines if the radio elements are inline or not.

Default: false

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

Number

The value to be edited.

Default: 0

radioLabels

Array

The list of labels to each radio button created.

Default: []

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