Class: ShadcnPhlexcomponents::DropdownMenuSubContentContainer
- Inherits:
-
Base
- Object
- Phlex::HTML
- Base
- ShadcnPhlexcomponents::DropdownMenuSubContentContainer
- Defined in:
- lib/shadcn_phlexcomponents/components/dropdown_menu_sub.rb
Constant Summary
Constants inherited from Base
Base::SANITIZER_ALLOWED_ATTRIBUTES, Base::SANITIZER_ALLOWED_TAGS, Base::TAILWIND_MERGER
Instance Method Summary collapse
Methods inherited from Base
#before_template, #convert_collection_hash_to_struct, #find_as_child, #icon, #initialize, #item_disabled?, #merge_default_attributes, #merged_as_child_attributes, #nokogiri_attributes_to_hash, #overlay, #sanitize_as_child
Constructor Details
This class inherits a constructor from ShadcnPhlexcomponents::Base
Instance Method Details
#default_attributes ⇒ Object
153 154 155 156 157 158 |
# File 'lib/shadcn_phlexcomponents/components/dropdown_menu_sub.rb', line 153 def default_attributes { style: { display: "none" }, data: { dropdown_menu_sub_target: "contentContainer" }, } end |
#view_template ⇒ Object
160 161 162 |
# File 'lib/shadcn_phlexcomponents/components/dropdown_menu_sub.rb', line 160 def view_template(&) div(**@attributes, &) end |