mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 06:10:56 +08:00
21 lines
651 B
TypeScript
21 lines
651 B
TypeScript
import { Placeholder as PlaceholderDefinition, CreateViewEventData } from "ui/placeholder"
|
|
import { View } from "ui/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;
|
|
}
|
|
} |