class UIImage
A view class that represents an image control.
class UIImage extends UIComponent
Description
An image component is rendered on-screen as a rectangular image, loaded from the provided (data or remote) URL.
Constructor
- constructor(url?)Creates a new image view object with the specified URL.
Type Members
- type UIImage.StyleType staticThe type definition for styles applicable to UIImage.style.
Instance Members
- urlThe image resource URL.
- widthTarget width of the image, in pixels or CSS length with unit.
- heightTarget height of the image, in pixels or CSS length with unit.
- allowFocusTrue if this image may receive input focus.
- allowKeyboardFocusTrue if this image may receive input focus using the keyboard (e.g. Tab key).
- styleThe style to be applied to this image.
Inherited Members
- applyViewPreset(preset)Applies the provided preset properties to this object.
- hiddenTrue if the component should be hidden from view.
- positionOptions related to the position of this component.
- accessibleRoleWAI-ARIA role for this component, if applicable.
- accessibleLabelWAI-ARIA label text for this component (not tooltip), if applicable.
- requestFocus()Requests input focus on this component.
- requestFocusNext()Requests input focus for the next sibling component.
- requestFocusPrevious()Requests input focus for the previous sibling component.
- render(callback)Triggers asynchronous rendering for this component, and all contained components, if any.
- findViewContent(type)Implementation of View.findViewContent(), returns an empty array unless overridden.
- lastRenderOutputLast rendered output, if any; set by the UI component renderer.
- emit(event)Emits an event, immediately calling all event handlers.
- emitChange(name?, data?)Emits a change event, an instance of ManagedChangeEvent.
- listen(handler)Adds a handler for all events emitted by this object.
- isUnlinked()Returns true if the object has been unlinked.
- unlink()Unlinks this managed object.
- beforeUnlink() protectedA method that’s called immediately before unlinking an object, can be overridden.
- attach(target, observer?) protectedAttaches the provided managed object to this object.
- autoAttach(propertyName, observer?) protectedObserves a property, so that any object assigned to it is attached immediately.