Skip to content

Commit fda44e9

Browse files
committed
test: demo app
1 parent 8d50d51 commit fda44e9

File tree

2 files changed

+188
-193
lines changed

2 files changed

+188
-193
lines changed

demo-vue/app/examples/TextFields.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44
<NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="onNavigationButtonTap"></NavigationButton>
55
</ActionBar>
66
<ScrollView>
7-
<GridLayout rows="auto,auto,auto,auto,auto,auto,auto">
8-
<StackLayout row="0" backgroundColor="red" horizontalAlignment="center">
7+
<StackLayout>
8+
<StackLayout backgroundColor="red" horizontalAlignment="center">
99
<MDTextField id="textField1" verticalAlignment="center" variant="none" width="250" placeholderColor="green" keyboardType="datetime" hint="i am an hint" returnKeyType="next" v-model="value" @focus="onFocus" @blur="onBlur" @textChange="onTextChange" @returnPress="onReturnPress" />
1010
</StackLayout>
11-
<GridLayout row="1" backgroundColor="red" rows="auto" padding="20">
11+
<GridLayout backgroundColor="red" rows="auto" padding="20">
1212
<MDTextField id="textField2" variant="filled" hint="hint me" v-model="value" backgroundColor="green" @focus="onFocus" @blur="onBlur" @textChange="onTextChange" @returnPress="onReturnPress" floating="false" />
1313
</GridLayout>
14-
<MDTextField row="2" id="textField3" hint="filled" @focus="onFocus" @blur="onBlur" @textChange="onTextChange" @returnPress="onReturnPress" margin="10" />
15-
<MDTextField row="3" id="textField4" maxLength="10" variant="outline" hint="outline" @focus="onFocus" @blur="onBlur" @textChange="onTextChange" @returnPress="onReturnPress" floatingColor="red" margin="10" buttonColor="red"/>
16-
<MDTextField row="4" id="textField5" variant="outline" hint="outline" @focus="onFocus" @blur="onBlur" @textChange="onTextChange" @returnPress="onReturnPress" floatingColor="red" placeholderColor="blue" strokeColor="green" margin="10" />
17-
<MDTextField row="5" id="textField6" variant="filled" required="true" email="true" hint="fill this out..." @focus="onFocus" @blur="onBlur" floating="false" @textChange="onTextChange" @returnPress="onReturnPress" strokeColor="red" margin="10" />
18-
</GridLayout>
14+
<MDTextField id="textField3" hint="filled" @focus="onFocus" @blur="onBlur" @textChange="onTextChange" @returnPress="onReturnPress" margin="10" />
15+
<MDTextField id="textField4" maxLength="10" variant="outline" hint="outline" @focus="onFocus" @blur="onBlur" @textChange="onTextChange" @returnPress="onReturnPress" floatingColor="red" margin="10" buttonColor="red"/>
16+
<MDTextField id="textField5" variant="outline" hint="outline" @focus="onFocus" @blur="onBlur" @textChange="onTextChange" @returnPress="onReturnPress" floatingColor="red" placeholderColor="blue" strokeColor="green" margin="10" />
17+
<MDTextField id="textField6" variant="filled" required="true" email="true" hint="fill this out..." @focus="onFocus" @blur="onBlur" floating="false" @textChange="onTextChange" @returnPress="onReturnPress" strokeColor="red" margin="10" />
18+
<MDTextField id="textField7" variant="filled" hint="limited digits 0123456789." @focus="onFocus" @blur="onBlur" floating="false" @textChange="onTextChange" @returnPress="onReturnPress" digits="0123456789." strokeColor="red" margin="10" />
19+
</StackLayout>
1920
</ScrollView>
2021
</Page>
2122
</template>

0 commit comments

Comments
 (0)