Class: AblyUi::Core::Slider
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AblyUi::Core::Slider
- Defined in:
- lib/ably_ui/core/slider/slider.rb
Defined Under Namespace
Classes: Slide
Instance Attribute Summary collapse
-
#additional_attributes ⇒ Object
readonly
Returns the value of attribute additional_attributes.
-
#classes ⇒ Object
readonly
Returns the value of attribute classes.
-
#slide_max_width ⇒ Object
readonly
Returns the value of attribute slide_max_width.
-
#slide_min_width ⇒ Object
readonly
Returns the value of attribute slide_min_width.
Instance Method Summary collapse
-
#initialize(classes: '', slide_min_width: '16.875rem', slide_max_width: '1fr', **additional_attributes) ⇒ Slider
constructor
A new instance of Slider.
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_max_width = end |
Instance Attribute Details
#additional_attributes ⇒ Object (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 |
#classes ⇒ Object (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_width ⇒ Object (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 end |
#slide_min_width ⇒ Object (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 end |