Sha256: 346344d9dfcef36bbb967fb0e0a0171b43d0069f023d43bbd7f9549217e13267

Contents?: true

Size: 884 Bytes

Versions: 12

Compression:

Stored size: 884 Bytes

Contents

# frozen_string_literal: true

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.3.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 :warn_dynamic_load do
            true
          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-3.3.0 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.2.1 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.2.0 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.2.0.rc lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.2.0.beta lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.1.4 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.1.3 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.1.2 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.1.1 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.1.0 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.1.0.rc2 lib/rails_admin/config/fields/types/action_text.rb
rails_admin-3.1.0.rc lib/rails_admin/config/fields/types/action_text.rb