Sha256: 55130ca19bd7dc2bf5c09ae5aafe5f2f04a80aafdaf1052cf2804ed401942460
Contents?: true
Size: 486 Bytes
Versions: 24
Compression:
Stored size: 486 Bytes
Contents
# frozen_string_literal: true module Katalyst module Tables module Cells # Displays the plain text for rich text content # # Adds a title attribute to allow for hover over display of the full content class RichTextComponent < CellComponent private def default_html_attributes { class: "type-rich-text", title: (value.to_plain_text unless row.header?), } end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems