Sha256: 77db55ea831eb62309db6ff18d13be69c8706ca0445f72ed7ca681aa568d85fe

Contents?: true

Size: 571 Bytes

Versions: 9

Compression:

Stored size: 571 Bytes

Contents

# frozen_string_literal: true

module UiBibz::Ui::Core::Icons::Components
  class GlyphText < UiBibz::Ui::Core::Component
    # See UiBibz::Ui::Core::Component.initialize

    # Render html tag
    def pre_render
      content_tag :span, content, html_options
    end

    private

    def component_html_data
      super
      transform
    end

    def component_html_classes
      super << %w[fa-layers-text fa-inverse]
    end

    def transform
      @data_html_options_builder.add 'fa_transform', value: options[:transform] if options[:transform]
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ui_bibz-4.0.0.beta14 lib/ui_bibz/ui/core/icons/components/glyph_text.rb
ui_bibz-4.0.0.beta13 lib/ui_bibz/ui/core/icons/components/glyph_text.rb
ui_bibz-4.0.0.beta10 lib/ui_bibz/ui/core/icons/components/glyph_text.rb
ui_bibz-4.0.0.beta9 lib/ui_bibz/ui/core/icons/components/glyph_text.rb
ui_bibz-4.0.0.beta8 lib/ui_bibz/ui/core/icons/components/glyph_text.rb
ui_bibz-4.0.0.beta7 lib/ui_bibz/ui/core/icons/components/glyph_text.rb
ui_bibz-4.0.0.beta6 lib/ui_bibz/ui/core/icons/components/glyph_text.rb
ui_bibz-4.0.0.beta4 lib/ui_bibz/ui/core/icons/components/glyph_text.rb
ui_bibz-4.0.0.beta3 lib/ui_bibz/ui/core/icons/components/glyph_text.rb