Class: Shoelace::Components::SlRange
- Inherits:
-
ActionView::Helpers::Tags::NumberField
- Object
- ActionView::Helpers::Tags::NumberField
- Shoelace::Components::SlRange
- Includes:
- ErrorWrappable
- Defined in:
- app/helpers/shoelace/components/sl_range.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from ErrorWrappable
Instance Method Details
#field_type ⇒ Object
10 |
# File 'app/helpers/shoelace/components/sl_range.rb', line 10 def field_type; nil; end |
#render ⇒ Object
12 13 14 15 |
# File 'app/helpers/shoelace/components/sl_range.rb', line 12 def render @options["invalid"] = @options["data-invalid"] = "" if object_has_errors? super end |
#tag(tag_name, *args, &block) ⇒ Object
17 18 19 |
# File 'app/helpers/shoelace/components/sl_range.rb', line 17 def tag(tag_name, *args, &block) tag_name.to_s == 'input' ? content_tag('sl-range', '', *args, &block) : super end |