NativeScript - ListPicker Posted on 2016-04-19 | In NativeScript list pick 就是下拉框 import {Component, ViewChild, ElementRef} from "angular2/core";import {Color} from "color";import {SearchBar ... Read more »
NativeScript - TimePicker/DatePicker Posted on 2016-04-19 | In NativeScript import {Component, ViewChild, ElementRef} from "angular2/core";import {Color} from "color";import {SearchBar} from "ui ... Read more »
NativeScript - SegmentedBar Posted on 2016-04-19 | In NativeScript SegmentedBar 和 Tabview 类似的组建都是切换.用于 route 写法 1 <SegmentedBar [items]="items" (selectedIndexChanged)="itemChange($event)"></SegmentedBar> ... Read more »
NativeScript - Image Posted on 2016-04-19 | In NativeScript image 图片标签 import { Component, ViewChild, ElementRef } from "angular2/core"import { Color } from "color"import { SearchBar ... Read more »
NativeScript - ActivityIndicator Posted on 2016-04-15 | In NativeScript loading 圈 busy show不show 宽高常用值 import {Component, ViewChild, ElementRef} from "angular2/core";import {Color} from "color";impor ... Read more »
NativeScript - Progress Posted on 2016-04-15 | In NativeScript Progress 进度条: value当前值 maxValue 最大值下面的代码还用了下 propertyChangeimport {Component, ViewChild, ElementRef} from "angular2/core";import {Colo ... Read more »
NativeScript - Switch Posted on 2016-04-13 | In NativeScript Switch 就是 switch…切换的 基本就是拿checked属性来给别的组建做判断改改颜色还是不错的目前change的用tap来捕获 import {Component, ViewChild, ElementRef} from "angular2/core";import ... Read more »
NativeScript - SearchBar Posted on 2016-04-13 | In NativeScript 基本 API: backgroundColor 框的背景色 textFieldHintColor 提示语颜色 color 输入文字颜色 SearchBar.submitEvent 提交事件 SearchBar.clearEvent 清除输入的 text 事件就是右侧的 x 按钮 import & ... Read more »
NativeScript - TextField Posted on 2016-04-12 | In NativeScript TextField 就是 input 框 <TextField #text (returnPress)="returnPress()" style="color:red;" returnKeyType="search" updateTextTrigger="textChanged" [(ng ... Read more »
NativeScript - Label Posted on 2016-04-11 | In NativeScript Label api少.. text最重要的 textWrap=”true” 能不能折叠 Label.className 能拿到 class 基本就这样了,其他都是style的事,没有看到类似html里的 for这个属性 <Label #lab class="cool" text="Te ... Read more »