Files
NativeScript/tns-core-modules/ui/layouts/stack-layout/stack-layout.android.ts
Hristo Hristov c18a76c93a rename:
_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView
2017-03-28 18:08:59 +03:00

15 lines
578 B
TypeScript

import { StackLayoutBase, orientationProperty } from "./stack-layout-common";
export * from "./stack-layout-common";
export class StackLayout extends StackLayoutBase {
nativeView: org.nativescript.widgets.StackLayout;
public createNativeView() {
return new org.nativescript.widgets.StackLayout(this._context);
}
[orientationProperty.setNative](value: "horizontal" | "vertical") {
this.nativeView.setOrientation(value === "vertical" ? org.nativescript.widgets.Orientation.vertical : org.nativescript.widgets.Orientation.horizontal)
}
}