FieldController

core_form/choicedropdown~ FieldController

new FieldController(elementId)

Source:

Class constructor.

Parameters:
Name Type Description
elementId String

Form element id

Methods

addEventListeners()

Source:

Add form element event listener.

disableInteractiveDialog()

Source:

Disable the choice dialog and convert it into a regular select field.

hasForceDialog() → {Boolean}

Source:

Check if the field has a force dialog attribute. // * The force dialog is a setting to force the javascript control even in behat test.

Returns:

if the dialog modal should be forced or not

Type
Boolean

isDisabled() → {Boolean}

Source:

Check if the field is disabled.

Returns:
Type
Boolean

(async) updateDropdown()

Source:

Update selected option preview in form.

(async) updateSelect()

Source:

Update selected option preview in form.