Class: AblyUi::Core::Slider

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/ably_ui/core/slider/slider.rb

Defined Under Namespace

Classes: Slide

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(classes: '', slide_min_width: '16.875rem', slide_max_width: '1fr', **additional_attributes) ⇒ Slider

Returns a new instance of Slider.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ably_ui/core/slider/slider.rb', line 11

def initialize(
  classes: '',
  slide_min_width: '16.875rem',
  slide_max_width: '1fr',
  **additional_attributes
)
  @classes = classes
  @additional_attributes = additional_attributes
  @slide_min_width = slide_min_width
  @slide_max_width = slide_max_width
end

Instance Attribute Details

#additional_attributesObject (readonly)

Returns the value of attribute additional_attributes.



4
5
6
# File 'lib/ably_ui/core/slider/slider.rb', line 4

def additional_attributes
  @additional_attributes
end

#classesObject (readonly)

Returns the value of attribute classes.



4
5
6
# File 'lib/ably_ui/core/slider/slider.rb', line 4

def classes
  @classes
end

#slide_max_widthObject (readonly)

Returns the value of attribute slide_max_width.



4
5
6
# File 'lib/ably_ui/core/slider/slider.rb', line 4

def slide_max_width
  @slide_max_width
end

#slide_min_widthObject (readonly)

Returns the value of attribute slide_min_width.



4
5
6
# File 'lib/ably_ui/core/slider/slider.rb', line 4

def slide_min_width
  @slide_min_width
end