This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault.tsx
More file actions
52 lines (50 loc) · 2.7 KB
/
default.tsx
File metadata and controls
52 lines (50 loc) · 2.7 KB
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
/**
* Sample demonstrates the standard mask elements of the MaskedTextBox.
*/
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { MaskedTextBoxComponent } from '@syncfusion/ej2-react-inputs';
import { SampleBase } from '../common/sample-base';
import './sample.css';
export class Default extends SampleBase<{}, {}> {
render() {
return (
<div className='control-pane'>
<div className='control-section'>
<div className="content-wrapper sample-mask">
<div className="control-label">Mobile Number
</div>
<MaskedTextBoxComponent mask='000-000-0000'></MaskedTextBoxComponent>
<div className="control-label">Country ISO Code
</div>
<MaskedTextBoxComponent mask='>LL / LLL'></MaskedTextBoxComponent>
<div className="control-label">D.O.B
</div>
<MaskedTextBoxComponent mask='00/00/0000'></MaskedTextBoxComponent>
<div className="control-label">Product Key
</div>
<MaskedTextBoxComponent mask='>AAAAA-AAAAA-AAAAA-AAAAA'></MaskedTextBoxComponent>
</div>
</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="http://ej2.syncfusion.com/react/documentation/maskedtextbox/api-maskedTextBoxComponent.html#mask-string" 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="http://ej2.syncfusion.com/react/documentation/maskedtextbox/mask-configuration.html#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="http://ej2.syncfusion.com/react/documentation/maskedtextbox/getting-started.html" target="_blank">documentation</a></b> section.</p>
</div>
</div>
)
}
}