Show:

A base class for A.FormBuilderMultipleChoiceField.

Constructor

A.FormBuilderMultipleChoiceField

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_booleanFormatter

(
  • o
)
protected

Transforms a Boolean value into "yes" or "no" string.

Parameters:

  • o Object

_getFieldNode

() protected

Returns the node for the current field.

_getPredefinedValuesOptions

(
  • options
)
protected

Returns a list of predefined values with an empty option

Parameters:

  • options Object

_getToolbarItems

() Array

Gets a list of toolbar items.

Returns:

Array:

_handleDeleteEvent

(
  • event
)
protected

Popups a dialog to confirm deletion. If "yes", destroys the instance.

Parameters:

  • event Object

_handleDuplicateEvent

(
  • event
)
protected

Checks if the field isn't unique. If not, duplicates the instance.

Parameters:

  • event Object

_handleEditEvent

(
  • event
)
protected

Handles the edit event.

Parameters:

  • event Object

_normalizeValues

(
  • values
)
protected

Returns an array of objects with values

Parameters:

  • values Object

_setId

(
  • val
)
protected

Set the id attribute on the UI.

Parameters:

  • val Object

_uiSetAcceptChildren

(
  • val
)
protected

Set the acceptChildren attribute on the UI.

Parameters:

  • val Object

_uiSetDisabled

(
  • val
)
protected

Set the disabled attribute on the UI.

Parameters:

  • val Object

_uiSetFields

(
  • val
)
protected

Set the fields on the UI using the plotFields method from A.FormBuilder.

Parameters:

  • val Object

_uiSetLabel

(
  • val
)
protected

Set the label content on the UI.

Parameters:

  • val Object

_uiSetName

(
  • val
)
protected

Set the name attribute on the UI.

Parameters:

  • val Object

_uiSetOptions

(
  • val
)
protected

Set the options attribute on the UI.

Parameters:

  • val Object

_uiSetPredefinedValue

(
  • val
)
protected

Set the predefinedValue attribute on the UI.

Parameters:

  • val Object

_uiSetRequired

(
  • val
)
protected

Set the required attribute on the UI.

Parameters:

  • val Object

_uiSetSelected

(
  • val
)
protected

Set the selected attribute on the UI.

Parameters:

  • val Object

_uiSetShowLabel

(
  • val
)
protected

Set the showLabel attribute on the UI.

Parameters:

  • val Object

_uiSetTip

(
  • val
)
protected

Set the tip attribute on the UI.

Parameters:

  • val Object

_uiSetUnique

(
  • val
)
protected

Set the unique attribute on the UI.

Parameters:

  • val Object

buildFieldId

(
  • id
)
String private

Creates the field id.

Parameters:

  • id Object

Returns:

String:

buildFieldName

(
  • type
)
String private

Creates the field name.

Parameters:

  • type Object

Returns:

String:

createField

(
  • val
)
Object

Creates the field using the createField method from A.FormBuilder.

Parameters:

  • val Object

Returns:

Object:

destructor

() protected

Destructor lifecycle implementation for the A.FormBuilderField class.

getAttributesForCloning

() Object

Gets all necessary attributes for cloning this field.

Returns:

Object:

getHTML

() String

Gets the field markup.

To developer: Implement this

Returns:

String:

getNode

() Node

Creates a Node from the HTML string.

Returns:

Node:

getProperties

() Array

Gets properties from the property model.

Returns:

Array:

getPropertyModel

()

Returns a list of property models including the A.RadioCellEditor model.

initializer

() protected

Construction logic executed during A.FormBuilderMultipleChoiceField instantiation. Lifecycle.

renderUI

() protected

Render the A.FormBuilderField component instance. Lifecycle.

Properties

ATTRS

Object static

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

CSS_PREFIX

String static

Static property provides a string to identify the CSS prefix.

EXTENDS

Object static

Static property used to define which component it extends.

NAME

String static

Static property provides a string to identify the class.

UI_ATTRS

Array static

Static property used to define the UI attributes.

Attributes

acceptChildren

Boolean readonly

If true children are accepted.

Default: false

builder

The A.FormBuilder instance.

Default: null

controlsToolbar

Object

Collection of toolbar controls.

dataType

String

Indicates which is the type of data for the input field.

Default: 'string'

disabled

Boolean

Checks if the input field is disabled or not.

Default: false

dropZoneNode

Node used to generate the drop zone.

hiddenAttributes

Array

List of hidden attributes.

Default: []

label

String

The label of the input field.

Default: ''

labelNode

Node used to generate a label.

localizationMap

Object

Collection for content localization.

Default: {}

options

Object

Collection of options. Each option is made of a label and value.

optionTemplate

String

Markup used to generate each item from options attribute.

Default: '<option value="{value}">{label}</option>'

parent

Container for the field parent.

Default: null

predefinedValue

Specifies a predefined value for the multiple choice field.

readOnly

Boolean

Checks if an input field is read-only. In other words, it cannot be modified.

Default: false

readOnlyAttributes

Array

List of read-only input fields.

Default: []

required

Boolean

Checks if an input field is required. In other words, it needs content to be valid.

Default: false

requiredFlagNode

Node used to generate the required flag.

selected

Boolean

Checks if the input field is selected or not.

Default: false

showLabel

Boolean

If true the label is showed.

Default: true

strings

Object

Collection of strings used to label elements of the UI.

tabIndex

Number

Specify the tab order.

Default: 0

template

String

Reusable block of markup used to generate the field.

Default: ''

templateNode

Node used to generate a template.

tip

String

Hint to help the user to fill the input field.

Default: ''

tipFlagNode

Node used to generate a tip.

type

String

Defines the type of field.

Default: ''

unique

Boolean

Checks if the input field is unique or not.

Default: false

zIndex

Number

Stack order of the field. An element with greater stack order is always in front of an element with a lower stack order.

Default: 100