Sha256: 1392b124c582ef116aaab5ab7a48aad27a458f8af4cb4cc4cefd939b7fd00de8
Contents?: true
Size: 941 Bytes
Versions: 58
Compression:
Stored size: 941 Bytes
Contents
/** * A table cell representing whether the column attribute is present * on the row model. * * ## Attribute Translations * * The following attribute translations are used: * * - `.cell_title.present` - Used as title attribute if the attribute * is present. The current attribute value is provided as * interpolation `%{value}`. * - `.cell_title.blank` - Used as title attribute if the * attribute is blank. * * @since 12.0 */ pageflow.PresenceTableCellView = pageflow.TableCellView.extend({ className: 'presence_table_cell', update: function() { var isPresent = !!this.attributeValue(); this.$el.attr('title', isPresent ? this.attributeTranslation('cell_title.present', { value: this.attributeValue() }) : this.attributeTranslation('cell_title.blank')); this.$el.toggleClass('is_present', isPresent); } });
Version data entries
58 entries across 58 versions & 1 rubygems