Sha256: e4dcefa713d5d85eafaebc3d9f353204231a1c046722debf27838c8be307af62
Contents?: true
Size: 472 Bytes
Versions: 5
Compression:
Stored size: 472 Bytes
Contents
rio.components.Image = new rio.Component.create(rio.components.Base, "Image", { attrAccessors: ["src", ["title", ""]], attrEvents: ["click"], methods: { buildHtml: function() { var imgHtml = rio.Tag.img(""); this.src.bind(function(src) { imgHtml.src = rio.url(src); }); this.title.bind(function(title) { imgHtml.title = title; }); imgHtml.observe("click", function() { this.fire("click"); }.bind(this)); return imgHtml; } } });
Version data entries
5 entries across 5 versions & 1 rubygems