ex custom html field - maxivak/simple_search_filter GitHub Wiki

Custom HTML options for field

options are passed to simple_form builder.

change width for input fields:

use input_html: {style: "width: 240px"}

example:

# in controller

search_filter :index, {save_session: true, search_method: :post_and_redirect, url: :invoices_url, search_url: :search_invoices_url, search_action: :search} do
    default_order "created_at", 'desc'

    field :title, :string, :text, {label: 'Title', default_value: '', input_html: {style: "width: 80px"}}