【发布时间】:2016-10-26 05:34:51
【问题描述】:
Ionic2 根据图片提供了带有左侧菜单滑块的漂亮模板:
Angular2 有任何 NativeScript 方法吗?
我将npm i nativescript-telerik-ui 安装到项目中,例如http://docs.telerik.com/devtools/nativescript-ui/Controls/Angular/SideDrawer/getting-started 将html 代码放入我的文件中:
<RadSideDrawer exampleTitle toggleNavButton>
<StackLayout tkDrawerContent class="sideStackLayout">
<StackLayout class="sideTitleStackLayout">
<Label text="Navigation Menu"></Label>
</StackLayout>
<StackLayout class="sideStackLayout">
<Label text="Primary" class="sideLabel sideLightGrayLabel"></Label>
<Label text="Social" class="sideLabel"></Label>
<Label text="Promotions" class="sideLabel"></Label>
<Label text="Labels" class="sideLabel sideLightGrayLabel"></Label>
<Label text="Important" class="sideLabel"></Label>
<Label text="Starred" class="sideLabel"></Label>
<Label text="Sent Mail" class="sideLabel"></Label>
<Label text="Drafts" class="sideLabel"></Label>
</StackLayout>
</StackLayout>
<StackLayout tkMainContent>
<Label [text]="mainContentText" textWrap="true" class="drawerContentText"></Label>
<Button text="OPEN DRAWER" (tap)=openDrawer()></Button>
</StackLayout>
</RadSideDrawer>
但是一旦我运行tns run android --emulator,我就看不到 Deawer 出现在屏幕上。
【问题讨论】:
标签: ionic2 angular2-nativescript nativescript-telerik-ui