Skip to content

Commit

Permalink
Merge branch 'main' into version-2
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Nov 14, 2024
2 parents ff1924d + d3293c6 commit b4ec7a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/datagrid/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ def datagrid_label(filter_or_attribute, text = nil, **options, &block)
label(filter.name, text || filter.header, **options, &block)
end

# @visibility private
# @param filter_or_attribute [Datagrid::Filters::BaseFilter, String, Symbol] filter object or filter name
# @param options [{Symbol => Object}] HTML attributes to assign to input tag
# * `type` - special attribute the determines an input tag to be made.
# Examples: `text`, `select`, `textarea`, `number`, `date` etc.
# @return [String] an input tag for the corresponding filter name
def datagrid_filter_input(attribute_or_filter, **options, &block)
filter = datagrid_get_filter(attribute_or_filter)
options = add_filter_options(filter, **options)
Expand Down

0 comments on commit b4ec7a2

Please sign in to comment.