Class: TurboOverlay::DrawerConfig
- Inherits:
-
OverlayTypeConfig
- Object
- OverlayTypeConfig
- TurboOverlay::DrawerConfig
- Defined in:
- lib/turbo_overlay/configuration.rb
Overview
Drawer config extends OverlayTypeConfig with a default position (‘:left`, `:right`, `:top`, `:bottom`) used by shipped layouts. Per-instance position can be overridden by editing the layout. Also exposes `advance` (same semantics as ModalConfig).
Instance Attribute Summary collapse
-
#advance ⇒ Object
Returns the value of attribute advance.
-
#position ⇒ Object
Returns the value of attribute position.
Attributes inherited from OverlayTypeConfig
Instance Method Summary collapse
-
#initialize(position:, advance: false, **kwargs) ⇒ DrawerConfig
constructor
A new instance of DrawerConfig.
Constructor Details
#initialize(position:, advance: false, **kwargs) ⇒ DrawerConfig
Returns a new instance of DrawerConfig.
32 33 34 35 36 |
# File 'lib/turbo_overlay/configuration.rb', line 32 def initialize(position:, advance: false, **kwargs) super(**kwargs) @position = position @advance = advance end |
Instance Attribute Details
#advance ⇒ Object
Returns the value of attribute advance.
30 31 32 |
# File 'lib/turbo_overlay/configuration.rb', line 30 def advance @advance end |
#position ⇒ Object
Returns the value of attribute position.
30 31 32 |
# File 'lib/turbo_overlay/configuration.rb', line 30 def position @position end |