Class: TurboOverlay::DrawerConfig

Inherits:
OverlayTypeConfig show all
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

Attributes inherited from OverlayTypeConfig

#variant

Instance Method Summary collapse

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

#advanceObject

Returns the value of attribute advance.



30
31
32
# File 'lib/turbo_overlay/configuration.rb', line 30

def advance
  @advance
end

#positionObject

Returns the value of attribute position.



30
31
32
# File 'lib/turbo_overlay/configuration.rb', line 30

def position
  @position
end