forked from syncfusion/ej2-vue-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.vue
57 lines (53 loc) · 2.52 KB
/
default.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template>
<div class="col-lg-12 control-section">
<div class="mask-content-wrapper">
<!-- Initialize MaskedTextBox -->
<div class="mask-control-label">Mobile Number</div>
<ejs-maskedtextbox mask="000-000-0000">
</ejs-maskedtextbox>
<!-- Initialize MaskedTextBox -->
<div class="mask-control-label">Country ISO Code</div>
<ejs-maskedtextbox mask=">LL / LLL">
</ejs-maskedtextbox>
<!-- Initialize MaskedTextBox -->
<div class="mask-control-label">D.O.B</div>
<ejs-maskedtextbox mask="00/00/0000">
</ejs-maskedtextbox>
<!-- Initialize MaskedTextBox -->
<div class="mask-control-label">Product Key</div>
<ejs-maskedtextbox mask=">AAAAA-AAAAA-AAAAA-AAAAA">
</ejs-maskedtextbox>
</div>
<div id="action-description">
<p>This sample demonstrates that the default functionalities of MaskedTextBox component.
Enter numeric value for “Mobile Number” textbox then press tab key and then enter “Country ISO Code” in alphabetic format, then type “D.O.B” in numeric format.
Finally enter the “Product Key” in alpha numeric format.</p>
</div>
<div id="description">
<p>The <b>MaskedTextBox</b> is a textbox extended component that allows the user to enter only the valid input based
on the provided <b><a href="https://ej2.syncfusion.com/vue/documentation/api/maskedtextbox/#mask" target="_blank">mask</a></b>. It is used to get the input with specific formats like Phone number, Date, Time, IP, Social security number, etc.</p>
<p>MaskedTextBox supports the list of <b><a href="https://ej2.syncfusion.com/vue/documentation/maskedtextbox/mask-configuration/#standard-mask-elements" target="_blank">mask elements</a></b> based
on the standard
<b><a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask(v=vs.110).aspx" target="_blank"> MSDN</a></b> mask
elements.</p>
<p>More information about the MaskedTextBox instantiation can be found in the <b><a href="https://ej2.syncfusion.com/vue/documentation/maskedtextbox/getting-started/" target="_blank">documentation</a></b> section.</p>
</div>
</div>
</template>
<style scoped>
.mask-content-wrapper {
width: 30%;
margin: 0 auto;
min-width: 185px;
}
.mask-control-label {
padding: 24px 0px 10px 0px;
font-size: 12px;
}
</style>
<script>
import Vue from "vue";
import { MaskedTextBoxPlugin } from "@syncfusion/ej2-vue-inputs";
Vue.use(MaskedTextBoxPlugin);
export default Vue.extend ({});
</script>