Class: Bootstrap4RailsComponents::Bootstrap::Components::Card
- Inherits:
-
Base
- Object
- Base
- Bootstrap4RailsComponents::Bootstrap::Components::Card
show all
- Includes:
- Utilities::Themeable
- Defined in:
- lib/bootstrap4_rails_components/bootstrap/components/card.rb
Overview
Instance Attribute Summary
Attributes inherited from Base
#body, #options, #view_context
Instance Method Summary
collapse
#outlined, #theme
Methods inherited from Base
#component_initialize, #data, #href, #html_options, #id, #initialize, #style, #utility_initialize
Instance Method Details
#component_family ⇒ Object
11
12
13
|
# File 'lib/bootstrap4_rails_components/bootstrap/components/card.rb', line 11
def component_family
:card
end
|
15
16
17
|
# File 'lib/bootstrap4_rails_components/bootstrap/components/card.rb', line 15
def
options.fetch(:footer, '')
end
|
#heading ⇒ Object
19
20
21
|
# File 'lib/bootstrap4_rails_components/bootstrap/components/card.rb', line 19
def heading
options.fetch(:heading, '')
end
|
#subtitle ⇒ Object
23
24
25
|
# File 'lib/bootstrap4_rails_components/bootstrap/components/card.rb', line 23
def subtitle
options.fetch(:subtitle, '')
end
|
#title ⇒ Object
27
28
29
|
# File 'lib/bootstrap4_rails_components/bootstrap/components/card.rb', line 27
def title
options.fetch(:title, '')
end
|