Module: Quby::Compiler::Entities::Questions::Concerns::Slider
- Extended by:
- ActiveSupport::Concern
- Included in:
- FloatQuestion, IntegerQuestion
- Defined in:
- lib/quby/compiler/entities/questions/concerns/slider.rb
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/quby/compiler/entities/questions/concerns/slider.rb', line 9 def as_json( = {}) if as == :slider super.merge( step: step, defaultPosition: default_position.is_a?(Numeric) ? default_position : minimum, startThumbHidden: default_position == :hidden, valueTooltip: input_data[:value_tooltip] || false, labels: labels ) else super end end |