Class: Shadcn::Menubar::SubContent::Component
- Inherits:
-
DropdownMenu::SubContent::Component
- Object
- ViewComponent::Base
- ApplicationViewComponent
- DropdownMenu::SubContent::Component
- Shadcn::Menubar::SubContent::Component
- Defined in:
- app/components/shadcn/menubar/sub_content/component.rb
Overview
A submenu's panel. Byte-identical to the dropdown's but for the
--radix-* prefix, which is exactly why it cannot be inherited: those
are the properties popper.js writes under the controller's prefix, and
borrowing the dropdown's string would leave this reading variables
nothing sets. parity_spec would not catch it — it asks whether a token
appears anywhere in the family, not whether it appears on the right
element.
Constant Summary
Constants inherited from ApplicationViewComponent
ApplicationViewComponent::CONTENTS_STYLE, ApplicationViewComponent::VOID_TAGS
Instance Attribute Summary
Attributes inherited from ApplicationViewComponent
Method Summary
Methods inherited from DropdownMenu::SubContent::Component
Methods inherited from ApplicationViewComponent
#call, #css_classes, default_tag, #element_attributes, #initialize, #merged_style, #render_element, #shadcn_t, slot_name, #style_variants, #tag_name
Constructor Details
This class inherits a constructor from Shadcn::ApplicationViewComponent