Sha256: 04c646585514aff8d82ebcd19a81c7595f9e2ac9d5d5fadef1bc41f4b71c6d0e

Contents?: true

Size: 764 Bytes

Versions: 12

Compression:

Stored size: 764 Bytes

Contents

require 'rails_admin/config/fields/types/text'

module RailsAdmin
  module Config
    module Fields
      module Types
        class ActionText < Text
          # Register field type for the type loader
          RailsAdmin::Config::Fields::Types.register(self)

          register_instance_option :version do
            '1.1.1'
          end

          register_instance_option :css_location do
            "https://cdnjs.cloudflare.com/ajax/libs/trix/#{version}/trix.css"
          end

          register_instance_option :js_location do
            "https://cdnjs.cloudflare.com/ajax/libs/trix/#{version}/trix.js"
          end

          register_instance_option :partial do
            :form_action_text
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails_admin-2.3.1 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-2.3.0 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.0.0.beta2 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.0.0.beta lib/rails_admin/config/fields/types/action_text.rb
rails_admin-2.2.1 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-2.2.0 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-2.1.1 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-2.1.0 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-2.0.2 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-2.0.1 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-2.0.0 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-2.0.0.rc lib/rails_admin/config/fields/types/action_text.rb