ImageEnabledAlways: Boolean
The ImageEnabledAlways property specified whether the text box background image is active when the box is inactive.
Use JSON or the setImageEnabledAlways method to set the property value, and the getImageEnabledAlways method to get the property value.
If the property is set to True, when the text box is inactive, the background image is active, otherwise it is not.
By default the property is set to False.
To execute the example, the page must contain the TextBox component named textBox (see Example of Creating the TextBox Component). Handle the ImageClick event, set whether background image must be active, when the text box is inactive, deactivate the text box:
// Handle the ImageClick event textBox.ImageClick.add(function (sender, args, timeout) { console.log("The ImageClick event is initialized") }); // Set whether background image must be active when there is an inactive component textBox.setImageEnabledAlways(true); // Deactivate the text box textBox.setEnabled(false);
Left click on the text box background image.
A message informing that the ImageClick event is fired displays to the browser console after clicking on the image:
The ImageClick event is initialized
See also: