Sha256: 7828bfbbd9fd0c3d320ef7d664266eff3e3e4a89844f241ecbd44a05031e91bb
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
# frozen_string_literal: true using Katalyst::HtmlAttributes::HasHtmlAttributes module Katalyst module Tables module Body # Displays the plain text for rich text content # # Adds a title attribute to allow for hover over display of the full content class RichTextComponent < BodyCellComponent def default_html_attributes { title: value.to_plain_text } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katalyst-tables-3.0.0.beta1 | app/components/katalyst/tables/body/rich_text_component.rb |