Class: Vime::Ui::Settings::MenuRadio

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

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

#dom_attrsObject



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

def dom_attrs
  super.merge({
    badge: badge,
    checked: checked,
    checked_icon: checked_icon,
    label: label,
    value: value,
  })
end