Files
NativeScript/ui/placeholder/placeholder.ios.ts
2015-04-24 09:29:00 +03:00

25 lines
754 B
TypeScript

import definition = require("ui/placeholder");
import common = require("ui/placeholder/placeholder-common");
// merge the exports of the common file with the exports of this file
declare var exports;
require("utils/module-merge").merge(common, exports);
export class Placeholder extends common.Placeholder {
private _ios: UIView;
get ios(): UIView {
if (!this._ios) {
console.trace();
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;
}
}