diff --git a/.gitignore b/.gitignore index c65cec61..df0336ed 100644 --- a/.gitignore +++ b/.gitignore @@ -38,5 +38,6 @@ pnpm-lock.yaml .idea .vs-code .eslintcache +.cache docs/ example.api.json* diff --git a/src/Input.ts b/src/Input.ts index b6f92918..447fb0a5 100644 --- a/src/Input.ts +++ b/src/Input.ts @@ -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. + *
! be careful with this setting if you have a lot of inputs to render as each mask will add one more draw call. + *
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) {