Protected
_Optional
options: { args: any[] }Get the value from config
existing value, new value can be copied to this if not equal.
whether the value should be copied to val if equal. Default is true.
The value from the binding, cloned or copied if possible. If the value is equal and copyOnEqual is false, then undefined is returned. this can be used to check if the value is changed
Performs an action with undo/redo support.
the target object to call the action on
a function that returns - 1. an undo function, 2. an object with undo and redo functions (and optional action)
the arguments to pass to the action function
ui config
Optional
onUndoRedo: (c: ActionCommand) => voidoptional callback function to be called on undo/redo of the command. Not called on first action execution, only on undo/redo.
only the prop last
need to be set, rest are optional. lastValue
can be set if known (but it should be exactly equal to the value in the binding and not cloned).
Optional
forceOnChange: boolean
only last needs to be set, rest are optional.
lastValue
can be set if known (but it should be exactly equal to the value in the binding and not cloned).config
,configPath
are for parentOnChange, no need to set that.