Skip to content

Commit

Permalink
Update Mask doc and d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Nov 20, 2020
1 parent e113ac5 commit e164669
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/inputmask/InputMask.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ interface InputMaskProps {
ariaLabelledBy?: string;
onComplete?(e: {originalEvent: Event, value: any}): void;
onChange?(e: {originalEvent: Event, value: any, target: {name: string, id: string, value: any}}): void;
onFocus?(e: Event): void;
onBlur?(e: Event): void;
}

export class InputMask extends React.Component<InputMaskProps,any> {}
10 changes: 10 additions & 0 deletions src/showcase/inputmask/InputMaskDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,16 @@ import { InputMask } from 'primereact/inputmask';
</tr>
</thead>
<tbody>
<tr>
<td>onFocus</td>
<td>event: Browser event</td>
<td>Callback to invoke when input receives focus.</td>
</tr>
<tr>
<td>onBlur</td>
<td>event: Browser event</td>
<td>Callback to invoke when input loses focus.</td>
</tr>
<tr>
<td>onComplete</td>
<td>event: Browser event<br/>
Expand Down

0 comments on commit e164669

Please sign in to comment.