image
Syntax
<div data-juci="image" data-value="/img/image.png"></div>
<div data-juci="image" data-bind="ref: img" data-uri="true"></div>
Attributes
Methods
-
onError(handler, context) ¶Registers a handler function to call when the image#error event fires.Parameters:
-
handler{Function}
A handler function to execute when the image#error event fires.
-
context{Object}
Optional
Context in which the handler function should execute.
-
handler{Function}
-
onLoad(handler, context) ¶Registers a handler function to call when the image#event:load event fires.Parameters:
-
handler{Function}
A handler function to execute when the image#event:load event fires.
-
context{Object}
Optional
Context in which the handler function should execute.
-
handler{Function}
Events
-
error(eventObj) ¶Fires when the image loading has failedParameters:
-
eventObj{EventObject}
-
img{juci.elem}
Image element
-
img{juci.elem}
-
eventObj{EventObject}
-
load(eventObj) ¶Fires when the image has loaded in the controlParameters:
-
eventObj{EventObject}
-
img{juci.elem}
Image element
-
img{juci.elem}
-
eventObj{EventObject}