Module: StimulusPlumbers::Form::Fields::Inputs::Range

Includes:
Components::Progress::Shared
Included in:
Builder
Defined in:
lib/stimulus_plumbers/form/fields/inputs/range.rb

Overview

A range is a track and a thumb, not a text box, so it takes none of the text input's chrome. With format: it grows a readout driven by the progress controller.

Constant Summary

Constants included from Components::Progress::Shared

Components::Progress::Shared::FORMATS

Instance Method Summary collapse

Instance Method Details

#range_field(attribute, **options) ⇒ Object



12
13
14
# File 'lib/stimulus_plumbers/form/fields/inputs/range.rb', line 12

def range_field(attribute, **options)
  super(attribute, merge_html_options(theme.resolve(:form_field_input_range), options.except(:floating)))
end