Class: UI::ScrollAreaCornerComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::ScrollAreaCornerComponent
- Includes:
- ScrollAreaCornerBehavior
- Defined in:
- app/view_components/ui/scroll_area_corner_component.rb
Overview
CornerComponent - ViewComponent implementation
Intersection element between vertical and horizontal scrollbars.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ ScrollAreaCornerComponent
constructor
A new instance of ScrollAreaCornerComponent.
Methods included from ScrollAreaCornerBehavior
#scroll_area_corner_classes, #scroll_area_corner_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ ScrollAreaCornerComponent
Returns a new instance of ScrollAreaCornerComponent.
14 15 16 17 |
# File 'app/view_components/ui/scroll_area_corner_component.rb', line 14 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'app/view_components/ui/scroll_area_corner_component.rb', line 19 def call content_tag :div, nil, **scroll_area_corner_html_attributes.deep_merge(@attributes) end |