Class: Vident::ViewComponent::Base
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Vident::ViewComponent::Base
- Includes:
- Component
- Defined in:
- lib/vident/view_component/base.rb
Instance Method Summary collapse
-
#parent_element(**options) ⇒ Object
(also: #root)
Helper to create the main element.
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(**) @parent_element ||= RootComponent.new(**parent_element_attributes()) end |