SetUp Method

SetUp(String, EventCallback<ChangeEvent<TValue>>, TValue)

Sets the bindingPath of the tracker, registers a callback and sets an initial value.

Declaration
public void SetUp(string propertyPath, EventCallback<ChangeEvent<TValue>> callback, TValue initialValue = null)
Parameters
String propertyPath

Path of the property to be tracked

EventCallback<ChangeEvent<TValue>> callback

Set a callback to be called when the property changes

TValue initialValue

The initial value of the property. Set it to avoid triggering the callback when the element is bound.

SetUp(SerializedProperty, EventCallback<ChangeEvent<TValue>>, TValue)

Sets the bindingPath of the tracker, registers a callback and sets an initial value.

Declaration
public void SetUp(SerializedProperty property, EventCallback<ChangeEvent<TValue>> callback, TValue initialValue = null)
Parameters
SerializedProperty property

Property to be tracked

EventCallback<ChangeEvent<TValue>> callback

Set a callback to be called when the property changes

TValue initialValue

The initial value of the property. Set it to avoid triggering the callback when the element is bound.