Files
NativeScript/tns-core-modules/ui/placeholder/placeholder.ios.ts
Hristo Hristov a64847ca9d next
2016-12-13 15:51:18 +02:00

21 lines
636 B
TypeScript

import { Placeholder as PlaceholderDefinition, CreateViewEventData } from "ui/placeholder"
import { View } from "ui/core/view";
export class Placeholder extends PlaceholderDefinition {
public static creatingViewEvent = "creatingView";
private _ios: UIView;
get ios(): UIView {
if (!this._ios) {
var args = <CreateViewEventData>{ eventName: Placeholder.creatingViewEvent, object: this, view: undefined, context: undefined };
super.notify(args);
this._ios = args.view;
}
return this._ios;
}
get _nativeView(): UIView {
return this.ios;
}
}