File tree Expand file tree Collapse file tree 2 files changed +31
-26
lines changed Expand file tree Collapse file tree 2 files changed +31
-26
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <Page >
3
- <ActionBar :title =" title" >
4
- <NavigationButton text =" Back"
5
- android.systemIcon =" ic_menu_back"
6
- @tap =" onNavigationButtonTap" ></NavigationButton >
7
- </ActionBar >
8
- <StackLayout >
9
- <MDRipple backgroundColor =" gray" rippleColor =" green" width =" 100" height =" 100" borderRadius =" 10" />
10
- <MDRipple width =" 100" height =" 100" borderRadius =" 10" />
11
- </StackLayout >
12
- </Page >
2
+ <Page >
3
+ <ActionBar :title =" title" >
4
+ <NavigationButton text =" Back" android.systemIcon =" ic_menu_back" @tap =" onNavigationButtonTap" ></NavigationButton >
5
+ </ActionBar >
6
+ <StackLayout >
7
+ <MDRipple backgroundColor =" gray" rippleColor =" green" width =" 100" height =" 100" borderRadius =" 10" />
8
+ <MDRipple width =" 100" height =" 100" borderRadius =" 10" />
9
+ </StackLayout >
10
+ </Page >
13
11
</template >
14
12
15
13
<script lang="ts">
16
14
import * as frameModule from ' @nativescript/core/ui/frame' ;
17
- import Vue from ' vue'
15
+ import Vue from ' vue' ;
18
16
19
17
export const title = ' Ripples sample' ;
20
18
@@ -23,14 +21,14 @@ export default Vue.extend({
23
21
24
22
data() {
25
23
return {
26
- title: title
24
+ title
27
25
};
28
26
},
29
27
30
28
methods: {
31
29
onNavigationButtonTap() {
32
30
frameModule .Frame .topmost ().goBack ();
33
31
}
34
- },
35
- })
32
+ }
33
+ });
36
34
</script >
Original file line number Diff line number Diff line change 10
10
<Button text =" setSelection" @tap =" $refs.textField1.nativeView.setSelection(1, 4)" />
11
11
</StackLayout >
12
12
<StackLayout backgroundColor =" red" horizontalAlignment =" center" orientation =" horizontal" >
13
- <Label width =" 20" height =" 20" backgroundColor =" green" verticalAlignment =" top" />
13
+ <Label width =" 20" height =" 20" backgroundColor =" green" verticalAlignment =" top" />
14
14
<MDTextField
15
15
ref =" textField1"
16
16
id =" textField1"
20
20
width =" 250"
21
21
height =" 60"
22
22
paddingTop =" 4"
23
+ lineHeight =" 20"
23
24
paddingBottom =" 0"
24
25
paddingLeft =" 0"
25
26
placeholderColor =" green"
48
49
floating =" true"
49
50
/>
50
51
</GridLayout >
51
- <MDTextField id =" textField34" hint =" test"
52
- helper =" helper text" helperColor =" green" errorColor =" purple"
53
- error =" error text"
54
- class =" md-textfield-outline" variant =" outline" />
55
- <MDTextField id =" textField3" hint =" filled" @focus =" onFocus" @blur =" onBlur" @textChange =" onTextChange" @returnPress =" onReturnPress" margin =" 10"
56
- text =" this si a text not editable" editable =" false" />
52
+ <MDTextField id =" textField34" hint =" test" helper =" helper text" helperColor =" green" errorColor =" purple" error =" error text" class =" md-textfield-outline" variant =" outline" />
53
+ <MDTextField
54
+ id =" textField3"
55
+ hint =" filled"
56
+ @focus =" onFocus"
57
+ @blur =" onBlur"
58
+ @textChange =" onTextChange"
59
+ @returnPress =" onReturnPress"
60
+ margin =" 10"
61
+ text =" this si a text not editable"
62
+ editable =" false"
63
+ />
57
64
<MDTextField
58
65
id =" textField4"
59
66
variant =" outline"
89
96
variant =" filled"
90
97
required =" true"
91
98
email =" true"
92
- maxLength =" 10"
99
+ maxLength =" 10"
93
100
hint =" fill this out..."
94
101
@focus =" onFocus"
95
102
@blur =" onBlur"
108
115
floating =" false"
109
116
@textChange =" onTextChange"
110
117
@returnPress =" onReturnPress"
111
- keyboardType =" decimal"
112
- digits =" 0123456789."
118
+ keyboardType =" decimal"
119
+ digits =" 0123456789."
113
120
margin =" 10"
114
121
/>
115
122
<MDTextField
@@ -140,7 +147,7 @@ export default Vue.extend({
140
147
141
148
data() {
142
149
return {
143
- title: title ,
150
+ title ,
144
151
value: ' '
145
152
};
146
153
},
You can’t perform that action at this time.
0 commit comments