Class: Vime::Ui::Controls::DefaultControls

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

Instance Method Summary collapse

Instance Method Details

#callObject



14
15
16
# File 'app/components/vime/ui/controls/default_controls.rb', line 14

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

#dom_attrsObject



18
19
20
21
22
23
24
25
# File 'app/components/vime/ui/controls/default_controls.rb', line 18

def dom_attrs
  super.merge({
    active_duration: active_duration,
    hide_on_mouse_leave: hide_on_mouse_leave,
    hide_when_paused: hide_when_paused,
    wait_for_playback_start: wait_for_playback_start
  })
end