Class: Polaris::Popover::PaneComponent
- Inherits:
-
Component
- Object
- Component
- Polaris::Popover::PaneComponent
- Defined in:
- app/components/polaris/popover/pane_component.rb
Instance Method Summary collapse
-
#initialize(fixed: false, sectioned: false, capture_overscroll: false, height: nil, scrollable_shadow: true, **system_arguments) ⇒ PaneComponent
constructor
A new instance of PaneComponent.
- #system_arguments ⇒ Object
Constructor Details
#initialize(fixed: false, sectioned: false, capture_overscroll: false, height: nil, scrollable_shadow: true, **system_arguments) ⇒ PaneComponent
Returns a new instance of PaneComponent.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/components/polaris/popover/pane_component.rb', line 4 def initialize( fixed: false, sectioned: false, capture_overscroll: false, height: nil, scrollable_shadow: true, **system_arguments ) @fixed = fixed @sectioned = sectioned @capture_overscroll = capture_overscroll @height = height @scrollable_shadow = scrollable_shadow @system_arguments = system_arguments end |
Instance Method Details
#system_arguments ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/components/polaris/popover/pane_component.rb', line 20 def system_arguments @system_arguments.tap do |args| args[:tag] = "div" args[:classes] = class_names( @system_arguments[:classes], "Polaris-Popover__Pane", "Polaris-Popover__Pane--fixed": @fixed, "Polaris-Popover__Pane--captureOverscroll": @capture_overscroll ) args[:style] = styles_list( args[:style], height: @height, max_height: @height, min_height: @height ) end end |