Sha256: 9d62c3b114aa888e18636601280c9e09dc2ed9c12bf008b830df9b0740be31e4
Contents?: true
Size: 518 Bytes
Versions: 6
Compression:
Stored size: 518 Bytes
Contents
pageflow.FileMetaDataItemView = Backbone.Marionette.ItemView.extend({ tagName: 'tr', template: 'templates/file_meta_data_item', ui: { label: 'th', value: 'td' }, onRender: function() { this.update(); this.listenTo(this.model, 'change:' + this.options.attribute, this.update); }, update: function() { this.ui.label.text(I18n.t('activerecord.attributes.' + this.model.modelName + '.' + this.options.attribute)); this.ui.value.text(this.model.get(this.options.attribute)); } });
Version data entries
6 entries across 6 versions & 1 rubygems