AlchemyCMS/alchemy_cms

View on GitHub
app/models/alchemy/ingredients/text.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Alchemy
  module Ingredients
    # A simple line of text
    #
    # Optionally it can have a link
    #
    class Text < Alchemy::Ingredient
      include DomIds

      store_accessor :data,
        :dom_id,
        :link,
        :link_target,
        :link_title,
        :link_class_name

      allow_settings %i[
        anchor
        disable_link
        display_inline
        input_type
        linkable
      ]
    end
  end
end