Class: NfgUi::Bootstrap::Components::Carousel
- Inherits:
-
Base
- Object
- Base
- NfgUi::Bootstrap::Components::Carousel
show all
- Defined in:
- lib/nfg_ui/bootstrap/components/carousel.rb
Overview
Instance Attribute Summary
Attributes inherited from Base
#body, #options, #view_context
Instance Method Summary
collapse
Methods inherited from Base
#href, #html_options, #id, #initialize, #style
Instance Method Details
#component_family ⇒ Object
9
10
11
|
# File 'lib/nfg_ui/bootstrap/components/carousel.rb', line 9
def component_family
:carousel
end
|
#controls ⇒ Object
13
14
15
|
# File 'lib/nfg_ui/bootstrap/components/carousel.rb', line 13
def controls
options.fetch(:controls, false)
end
|
#data ⇒ Object
17
18
19
|
# File 'lib/nfg_ui/bootstrap/components/carousel.rb', line 17
def data
super.merge!(ride: 'carousel')
end
|
#indicators ⇒ Object
21
22
23
|
# File 'lib/nfg_ui/bootstrap/components/carousel.rb', line 21
def indicators
options[:indicators] || 0 end
|