Sha256: 4de11dcc6442364a85c23e86fe8664f7c03424e52f16b985c93b64a95b07d0cc

Contents?: true

Size: 1.98 KB

Versions: 14

Compression:

Stored size: 1.98 KB

Contents

module Searchgasm
  module Helpers
    module ControlTypes
      # = Remote Select Control Types
      #
      # These helpers use rails built in remote_function as links. They are the same thing as the Select control type, but just use rails built in remote helpers.
      module RemoteSelect
        # Please see order_by_links. All options are the same and applicable here. The only difference is that instead of a group of links, this gets returned as a select form element that will perform the same function when the value is changed.
        def remote_order_by_select(options = {})
          add_remote_defaults!(options)
          order_by_select(options)
        end
        
        # Please see order_as_links. All options are the same and applicable here. The only difference is that instead of a group of links, this gets returned as a select form element that will perform the same function when the value is changed.
        def remote_order_as_select(options = {})
          add_remote_defaults!(options)
          order_as_select(options)
        end
        
        # Please see per_page_links. All options are the same and applicable here. The only difference is that instead of a group of links, this gets returned as a select form element that will perform the same function when the value is changed.
        def remote_per_page_select(options = {})
          add_remote_defaults!(options)
          per_page_select(options)
        end
        
        # Please see page_links. All options are the same and applicable here, except the :prev, :next, :first, and :last options. The only difference is that instead of a group of links, this gets returned as a select form element that will perform the same function when the value is changed.
        def remote_page_select(options = {})
          add_remote_defaults!(options)
          page_select(options)
        end
      end
    end
  end
end

ActionController::Base.helper Searchgasm::Helpers::ControlTypes::RemoteSelect if defined?(ActionController)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
searchgasm-1.2.1 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.3.1 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.3.2 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.3.4 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.3.0 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.3.3 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.2.2 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.5.1 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.5.0 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.4.0 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.3.5 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.5.3 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.4.1 lib/searchgasm/helpers/control_types/remote_select.rb
searchgasm-1.5.2 lib/searchgasm/helpers/control_types/remote_select.rb