Add a data child into this component.
A data child component to be added.
Get the data object bound to this component.
Get the array of data children of this component. This method will return empty array if
there is no any data child of this component.
Get the data parent of this component. This method can return null if this
component has no data parent.
To check that the data bound to this component is dirty or not. The data will be marked
as dirty if it is changed from its original state.
To check that this component will ignore data propagated from data parent or not.
Remove the given data child from this component.
A data child component to be removed.
To reset data that bound to this component.
To save data that bound to this component.
Set and bind data into this component.
The data object to set.
Set a data parent into this component.
A data parent component to be set.
Set a flag indicating that this component will ignore data propagated from data parent or not.
A flag indicating that this component will ignore data propagated from data parent or not.
Generated using TypeDoc
An interface class of a component which has
dataor can binddatawith. All classes implementing this interface must provide thedata mechanismto the user. A singledata parentmay have one or moredata children. When parent's data is changed, the parent will propogate the data change to all of its children. The method isDataDirty provides you the way to check that the data has been edited from its original state or not. This mechanism is very useful when you're developing an application which allows the user to edit data before save. When the user is leaving the page with unsaved data, the application may notify a warning message asking the user to save the data before leaving. Imagine that if your page contains a numerous of input components, by using thedata mechanismprovided by this interface, you can easily register those input components as page'sdata children. And, when you want to check that the user can leave this page or not, you just use the method isDataDirty on page component, it will automatically check the data dirty state on all of itsdata children.shiorin, tee4cute
AbstractHasData