Class: UI::TabsContent
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::TabsContent
- Includes:
- TabsContentBehavior
- Defined in:
- app/components/ui/tabs_content.rb
Overview
TabsContent component (Phlex) Panel displaying content for active tab
Instance Method Summary collapse
-
#initialize(value: "", default_value: "", orientation: "horizontal", classes: "", attributes: {}) ⇒ TabsContent
constructor
A new instance of TabsContent.
- #view_template(&block) ⇒ Object
Methods included from TabsContentBehavior
#content_html_attributes, #content_state
Constructor Details
#initialize(value: "", default_value: "", orientation: "horizontal", classes: "", attributes: {}) ⇒ TabsContent
Returns a new instance of TabsContent.
18 19 20 21 22 23 24 25 |
# File 'app/components/ui/tabs_content.rb', line 18 def initialize(value: "", default_value: "", orientation: "horizontal", classes: "", attributes: {}, **) @value = value @default_value = default_value @orientation = orientation @classes = classes @attributes = attributes super() end |
Instance Method Details
#view_template(&block) ⇒ Object
27 28 29 |
# File 'app/components/ui/tabs_content.rb', line 27 def view_template(&block) div(**content_html_attributes, &block) end |