mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
17 lines
572 B
TypeScript
17 lines
572 B
TypeScript
import observable = require("ui/core/observable");
|
|
import bindable = require("ui/core/bindable");
|
|
|
|
export class ProxyObject extends bindable.Bindable {
|
|
public setPropertyCore(data: observable.PropertyChangeData) {
|
|
this.setNativeProperty(data);
|
|
this.updateTwoWayBinding(data.propertyName, data.value);
|
|
}
|
|
|
|
public setNativeProperty(data: observable.PropertyChangeData) {
|
|
// inheritors will override this method to provide specific implementation
|
|
}
|
|
|
|
public onNativePropertyChanged(data: observable.PropertyChangeData) {
|
|
|
|
}
|
|
} |