Skip to content

Commit

Permalink
Feature 187 (#370)
Browse files Browse the repository at this point in the history
* feature #187 is almost done

* #187 version 2

* feature-167

* Feature -187 is finished

* Test: feature-187

* Test: feature-187

* Test: feature-187

* Test: feature-187

* Test: feature-187

* Test: feature-187

* Test: feature-187

* Test: feature-187

* html example

* Fix: resolved conflicts and read.md
  • Loading branch information
Serge0111 authored Mar 21, 2019
1 parent ae049d9 commit bf37b66
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,25 @@ Masked value: 1,234
```html
<input type='text' mask="00 00" [validation]="true">
```
### FormControl validation
You can hide symbols in input field and get the actual value in formcontrol

##### Usage

```html
<input matInput placeholder="Secure input" [hiddenInput]="true" mask="XXX/X0/0000">
```
### Custom pattern for this
You can define custom pattern and specify symbol to be rendered in input field.

```typescript
pattern = {
'B': {
pattern: new RegExp('\\d'),
symbol: 'X'
},

```
## Examples
Expand Down

0 comments on commit bf37b66

Please sign in to comment.