Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The event is returning the object that has the changes and in case of a tab(sidebar-item), it’s returning the tabbar(sidebar). Besides that, you can also check the stateData from the object. StateData contains the state, value and action just like in the table below:

PropertyValue
State

the name of the state (eg akhaschanges)

Value

the value of the state (eg true/false)

Action

the action is null (in a future version this will be used to specify if the state value was set or cleared (eg set/clear)


Example:

Create a new typescript file for example “TestEventOnStateChanged.ts” and add the following code for testing.

...

Now if you change something in the form, or remove the value form a mandatory field, or set a customState you will see the console.logs.

Image Added

Image Added