Sha256: 8c626f97f4647965e263c5889aedcf95abce49873aca864d98753938b23596ca

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 Bytes

Contents

rio.components.Label = rio.Component.create(rio.components.Base, {
	requireCss: "label",
	attrAccessors: ["content"],
	attrEvents: ["dblClick"],
	methods: {
		buildHtml: function() {
			var labelHtml = rio.Tag.span();
			this.content.bind(function(content) {
				labelHtml.update(content);
			});
			labelHtml.observe("dblclick", this.fire.curry("dblClick").bind(this));
			return labelHtml;
		}
	}
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
riojs-0.0.5 public/javascripts/components/label.js
riojs-0.0.4 public/javascripts/components/label.js
riojs-0.0.3 public/javascripts/components/label.js
riojs-0.0.2 public/javascripts/components/label.js
riojs-0.0.1 public/javascripts/components/label.js
riojs-0.0.0 public/javascripts/components/label.js