Class: UI::ContextMenuRadioGroup
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::ContextMenuRadioGroup
- Includes:
- ContextMenuRadioGroupBehavior
- Defined in:
- app/components/ui/context_menu_radio_group.rb
Overview
RadioGroup - Phlex implementation
Container for radio menu items. Uses ContextMenuRadioGroupBehavior concern for shared styling logic.
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ ContextMenuRadioGroup
constructor
A new instance of ContextMenuRadioGroup.
- #view_template(&block) ⇒ Object
Methods included from ContextMenuRadioGroupBehavior
#context_menu_radio_group_classes, #context_menu_radio_group_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ ContextMenuRadioGroup
Returns a new instance of ContextMenuRadioGroup.
18 19 20 21 |
# File 'app/components/ui/context_menu_radio_group.rb', line 18 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
23 24 25 26 27 |
# File 'app/components/ui/context_menu_radio_group.rb', line 23 def view_template(&block) div(**.merge(@attributes)) do yield if block_given? end end |