Files
NativeScript/tns-core-modules/ui/placeholder/placeholder.ios.ts
Hristo Deshev 629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00

22 lines
639 B
TypeScript

import { Placeholder as PlaceholderDefinition, CreateViewEventData } from "."
import { View } from "../core/view"
export class Placeholder extends View implements 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;
}
}