mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
22 lines
604 B
TypeScript
22 lines
604 B
TypeScript
import definition = require("ui/placeholder");
|
|
import common = require("./placeholder-common");
|
|
|
|
global.moduleMerge(common, exports);
|
|
|
|
export class Placeholder extends common.Placeholder {
|
|
private _ios: UIView;
|
|
|
|
get ios(): UIView {
|
|
if (!this._ios) {
|
|
var args = <definition.CreateViewEventData>{ eventName: common.Placeholder.creatingViewEvent, object: this, view: undefined, context: undefined };
|
|
super.notify(args);
|
|
this._ios = args.view;
|
|
}
|
|
return this._ios;
|
|
}
|
|
|
|
get _nativeView(): UIView {
|
|
return this.ios;
|
|
}
|
|
}
|