Search results

InputArgs API in JavaScript MaskedTextBox API control

Arguments to create input element for input text boxes utility.These properties are optional.

Properties

bindClearAction

boolean

E.g : Input.createInput({ element: element, customTag: 'ej2-custom-input' ,bindClearAction: false });

Specifies whether to bind the clear button action in input base or not.

buttons

string[]

E.g : Input.createInput({ element: element, buttons: ['e-icon-up', 'e-icon-down'] });

Specifies the icon classes for span element which will be append to the container.

customTag

string

E.g : Input.createInput({ element: element, customTag: 'ej2-custom-input' });

Specifies the custom tag which is acts as container to the input.

floatLabelType

FloatLabelType | string

E.g : Input.createInput({ element: element, floatLabelType : "Always" });

Specifies how the floating label works. Possible values are:

  • Never - Never float the label in the input when the placeholder is available.
  • Always - The floating label will always float above the input.
  • Auto - The floating label will float above the input after focusing or entering a value in the input.

properties

Object

E.g : Input.createInput({ element: element, properties: { readonly: true, placeholder: 'Search here' } });

To specifies the properties such as readonly,enable rtl,etc.