Skip to content

Commit

Permalink
Add maxLen option to InputPopup [Support]: InputPopup string limit #81
Browse files Browse the repository at this point in the history
  • Loading branch information
Elius94 committed Jan 18, 2024
1 parent 06fa330 commit 77cc785
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/InputPopup.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
| numeric | <code>boolean</code> | <p>If the input is numeric.</p> |
| [visible] | <code>boolean</code> | <p>If the popup is visible.</p> |
| [placeholder] | <code>string</code> | <p>Optional placeholder to show if empty</p> |
| [maxLen] | <code>number</code> | <p>Optional max length of the input (default 20). Set to 0 for no limit (not recommended). Since v3.4.0</p> |

<a name="InputPopup"></a>

Expand Down Expand Up @@ -86,7 +87,14 @@
| config | [<code>InputPopupConfig</code>](#InputPopupConfig) | <p>The config of the popup.</p> |

**Example**
```tsconst popup = new InputPopup({ id: "popup1", title: "Choose the number", value: selectedNumber, numeric: true}).show().on("confirm", (value) => { console.log(value) }) // show the popup and wait for the user to confirm```
```ts
const popup = new InputPopup({
id: "popup1",
title: "Choose the number",
value: selectedNumber,
numeric: true
}).show().on("confirm", (value) => { console.log(value) }) // show the popup and wait for the user to confirm
```
<a name="InputPopup+keyListenerNumeric"></a>

### inputPopup.keyListenerNumeric(_str, key)
Expand Down

0 comments on commit 77cc785

Please sign in to comment.