Sha256: a48d305bcc794aef75898509274f03c454c93d02452a948fb2dcd3cc0351d518
Contents?: true
Size: 867 Bytes
Versions: 58
Compression:
Stored size: 867 Bytes
Contents
/** * A table cell mapping column attribute values to a list of * translations. * * ## Attribute Translations * * The following attribute translations are used: * * - `.cell_text.<attribute_value>` - Used as cell content. * - `.cell_text.blank` - Used as cell content if attribute is blank. * - `.cell_title.<attribute_value>` - Used as title attribute. * - `.cell_title.blank` - Used as title attribute if attribute is blank. * * @since 12.0 */ pageflow.EnumTableCellView = pageflow.TableCellView.extend({ className: 'enum_table_cell', update: function() { this.$el.text(this.attributeTranslation('cell_text.' + (this.attributeValue() || 'blank'))); this.$el.attr('title', this.attributeTranslation('cell_title.' + (this.attributeValue() || 'blank'), { defaultValue: '' })); } });
Version data entries
58 entries across 58 versions & 1 rubygems