Show:

A base class for Data Editor. All data editors should extend from this.

Constructor

A.DataEditor

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_afterLabelChange

() protected

Fired after the label attribute is set.

_afterRequiredChange

() protected

Fired after the required attribute is set.

_afterVisibleChange

() protected

Fired after the visible attribute is set.

_uiSetLabel

(
  • label
)
protected

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

Parameters:

  • label String

_uiSetRequired

(
  • required
)
protected

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

Parameters:

  • required Object

_uiSetVisible

(
  • visible
)
protected

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

Parameters:

  • visible Object

destructor

() protected

Destructor lifecycle implementation for the A.DataEditor class. Lifecycle.

initializer

() protected

Constructor for the A.DataEditor. Lifecycle.

isEmpty

()

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

isValid

() Boolean

If the data editor is required and empty this will return false.

Returns:

Boolean:

Properties

ATTRS

Object static

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

Attributes

editedValue

The value after edition.

Default: null

label

String

The label to be used by this boolean editor.

Default: ''

node

Node

The node where the editor UI is rendered.

originalValue

The value to be edited.

Default: null

required

Defines if the data editor is required or not.

Default: false

strings

Object

Collection of strings used to label elements of the UI.

visible

Boolean

Determines if DataEditor is visible or not.

Default: false