Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

195 Mask input as default #205

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ pnpm-lock.yaml
.idea
.vs-code
.eslintcache
.cache
docs/
example.api.json*
3 changes: 3 additions & 0 deletions src/Input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export class Input extends Container {
* @param { number } options.padding.bottom - Bottom padding of the Input.
* @param { number } options.padding.left - Left padding of the Input.
* @param { boolean } options.cleanOnFocus - Clean Input on focus.
* @param { boolean } options.addMask - Add mask to the Input text, so it is cut off when it does not fit.
* <br> ! be careful with this setting if you have a lot of inputs to render as each mask will add one more draw call.
* <br> It is recommended to use maxLength setting instead.
* @param { Array } options.nineSliceSprite - NineSliceSprite values for bg and fill ([number, number, number, number]).
*/
constructor(options: InputOptions) {
Expand Down
Loading