Class: PhlexUI::ContextMenu::Content

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex_ui/context_menu/content.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#before_template, #initialize

Constructor Details

This class inherits a constructor from PhlexUI::Base

Instance Method Details

#view_template(&block) ⇒ Object



5
6
7
8
9
# File 'lib/phlex_ui/context_menu/content.rb', line 5

def view_template(&block)
  template_tag(data: {popover_target: "content"}) do
    div(**attrs, &block)
  end
end