return dirty status of the model
return dirty status of the specified prop
clone to new model
extend current model using child props builder. The builder retrieves base utils.
base(); // return all base model props
base('method', arg1, arg2, ...); // call base method with specified args
extend current model. This overload is usually for Javascript version or the child model does not contain any prop/method accessing to base model
get state of specified prop
set the model data with hydrated data, if the model is already changed before, no hydration made
force run init lifecycle. By default, the model runs init lifecycle at first access
Register listener to listen model props changed event
Register listener to listen model props changed event. The listener will be called when specified prop is changged
Register listener to listen model props changed event. The listener will be called when some of specified props are changged
Assign specified props to the model. Change event will be triggered once all props are assigned
get prop accessor of specified prop name
Reset all props of the model to initial values if hardReset = true, all listeners will be removed
change state of specified prop, when state value changed, model._onXXXStateChange called
listen change from multiple models and call selector to retrieve an update
return touched status of the model
return a touched status of specifid prop
wait model's next change
wait model's next change
The callback will be called when selected value which is returned from the selector is changed.
Generated using TypeDoc
call the method using model as method context