aem-forms-af-runtime

Class: UIChange

Implementation of uiChange event. The uiChange event is triggered on a field whenever a user interaction leads to a change in its value. This event is specifically designed to differentiate changes initiated by user interactions from those made programmatically.

param event payload containing details of the changes.

param whether the event should be propagated to all fields in a depth-first search (DFS) order starting from the top-level form element. Defaults to false, indicating no propagation.

Hierarchy

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new UIChange(payload, dispatch?)

Parameters

Name Type Default value
payload UIChangePayload undefined
dispatch boolean false

Overrides

ActionImpl.constructor

Accessors

currentTarget

get currentTarget(): FormModel | FieldModel | FieldsetModel

Returns

FormModel | FieldModel | FieldsetModel

Inherited from

ActionImpl.currentTarget


isCustomEvent

get isCustomEvent(): boolean

Returns

boolean

Inherited from

ActionImpl.isCustomEvent


metadata

get metadata(): any

Returns

any

Inherited from

ActionImpl.metadata


payload

get payload(): any

Returns

any

Inherited from

ActionImpl.payload


target

get target(): FormModel | FieldModel | FieldsetModel

Returns

FormModel | FieldModel | FieldsetModel

Inherited from

ActionImpl.target


type

get type(): string

Returns

string

Inherited from

ActionImpl.type

Methods

toJson

toJson(): Object

Returns

Object

Name Type
isCustomEvent boolean
payload any
type string

Inherited from

ActionImpl.toJson


toString

toString(): string

Returns

string

Inherited from

ActionImpl.toString