Class: Vident::ViewComponent::Base

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
Component
Defined in:
lib/vident/view_component/base.rb

Instance Method Summary collapse

Instance Method Details

#parent_element(**options) ⇒ Object Also known as: root

Helper to create the main element



7
8
9
# File 'lib/vident/view_component/base.rb', line 7

def parent_element(**options)
  @parent_element ||= RootComponent.new(**parent_element_attributes(options))
end