Class: PhlexKit::MenubarRadioGroup
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::MenubarRadioGroup
- Defined in:
- app/components/phlex_kit/menubar/menubar_radio_group.rb
Overview
Exclusive-choice group of MenubarRadioItems (share the same name:).
Mirrors shadcn/ui's MenubarRadioGroup. See menubar.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ MenubarRadioGroup
constructor
A new instance of MenubarRadioGroup.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ MenubarRadioGroup
Returns a new instance of MenubarRadioGroup.
5 |
# File 'app/components/phlex_kit/menubar/menubar_radio_group.rb', line 5 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
6 7 8 |
# File 'app/components/phlex_kit/menubar/menubar_radio_group.rb', line 6 def view_template(&) div(**mix({ class: "pk-menubar-group", role: "radiogroup" }, @attrs), &) end |