Class: Vime::Ui::Controls::Control

Inherits:
Component
  • Object
show all
Defined in:
lib/vime/ui/controls/control.rb

Instance Method Summary collapse

Instance Method Details

#callObject



17
18
19
# File 'lib/vime/ui/controls/control.rb', line 17

def call
   "vm-control", content, process_attrs(dom_attrs)
end

#dom_attrsObject



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/vime/ui/controls/control.rb', line 21

def dom_attrs
  super.merge({
    expanded: expanded,
    hidden: hidden,
    identifier: identifier,
    keys: keys,
    label: label,
    menu: menu,
    pressed: pressed,
  })
end