You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
Hi,
Can we have a more flexible ImageView that accepts as value a String or a Function ?
Here an example of patch for the render method:
/**
* Renders an image view based on the specified layout.
*
* @private
* @returns {String} The image view's html representation.
*/
render: function() {
this.computeValue();
this.html += '<img id="' + this.id + '" src="' + ($.isFunction(this.value) ? this.value() : this.value) + '"' + this.style() + '>';
return this.html;
}
Cheers
Julien Roche
The text was updated successfully, but these errors were encountered: