Class: Vime::Ui::Slider

Inherits:
Component
  • Object
show all
Defined in:
app/components/vime/ui/slider.rb

Instance Method Summary collapse

Instance Method Details

#callObject



15
16
17
# File 'app/components/vime/ui/slider.rb', line 15

def call
   "vm-slider", nil, process_attrs(dom_attrs)
end

#dom_attrsObject



19
20
21
22
23
24
25
26
27
28
# File 'app/components/vime/ui/slider.rb', line 19

def dom_attrs
  super.merge({
    label: label,
    max: max,
    min: min,
    step: step,
    value: value,
    value_text: value_text,
  })
end