Module: Twitter::Bootstrap::Components::Rails::V4::ComponentsHelper
- Defined in:
- app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb
Instance Method Summary collapse
- #bootstrap_alert(options, &block) ⇒ Object
- #bootstrap_badge(options = {}, &block) ⇒ Object
- #bootstrap_breadcrumb(options) ⇒ Object
- #bootstrap_button(options = {}, &block) ⇒ Object
- #bootstrap_button_group(options = {}, &block) ⇒ Object
- #bootstrap_card(options = {}, &block) ⇒ Object
- #bootstrap_carousel(options = {}, &block) ⇒ Object
- #bootstrap_carousel_item(options = {}, &block) ⇒ Object
- #bootstrap_collapse(options) ⇒ Object
- #bootstrap_dropdown(options) ⇒ Object
-
#bootstrap_flash ⇒ Object
add-on.
- #bootstrap_form(options) ⇒ Object
-
#bootstrap_form_for(object, *args, &block) ⇒ Object
add-on.
- #bootstrap_input_group(options) ⇒ Object
- #bootstrap_jumbotron(options) ⇒ Object
- #bootstrap_list_group(options) ⇒ Object
- #bootstrap_modal(options) ⇒ Object
- #bootstrap_nav(options = {}, &block) ⇒ Object
- #bootstrap_nav_item(options = {}, &block) ⇒ Object
- #bootstrap_navbar(options) ⇒ Object
- #bootstrap_navbar_brand(options = {}, &block) ⇒ Object
- #bootstrap_pagination(options) ⇒ Object
- #bootstrap_popover(options) ⇒ Object
- #bootstrap_portrait_card(options = {}, &block) ⇒ Object
- #bootstrap_progress(options) ⇒ Object
- #bootstrap_scrollspy(options) ⇒ Object
- #bootstrap_tooltip(options) ⇒ Object
-
#card_block(options = {}, &block) ⇒ Object
subhelpers.
- #card_blockquote(options = {}, &block) ⇒ Object
- #card_footer(options = {}, &block) ⇒ Object
- #card_header(options = {}, &block) ⇒ Object
Instance Method Details
#bootstrap_alert(options, &block) ⇒ Object
7 8 9 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 7 def bootstrap_alert(, &block) Twitter::Bootstrap::Components::V4::Alert.new(self, , &block).perform end |
#bootstrap_badge(options = {}, &block) ⇒ Object
11 12 13 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 11 def bootstrap_badge( = {}, &block) Twitter::Bootstrap::Components::V4::Badge.new(self, , &block).perform end |
#bootstrap_breadcrumb(options) ⇒ Object
15 16 17 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 15 def () Twitter::Bootstrap::Components::V4::Breadcrumb.new().perform end |
#bootstrap_button(options = {}, &block) ⇒ Object
19 20 21 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 19 def ( = {}, &block) Twitter::Bootstrap::Components::V4::Button.new(self, , &block).perform end |
#bootstrap_button_group(options = {}, &block) ⇒ Object
23 24 25 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 23 def ( = {}, &block) Twitter::Bootstrap::Components::V4::ButtonGroup.new(self, , &block).perform end |
#bootstrap_card(options = {}, &block) ⇒ Object
27 28 29 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 27 def bootstrap_card( = {}, &block) Twitter::Bootstrap::Components::V4::Card.new(self, , &block).perform end |
#bootstrap_carousel(options = {}, &block) ⇒ Object
31 32 33 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 31 def bootstrap_carousel( = {}, &block) Twitter::Bootstrap::Components::V4::Carousel.new(self, , &block).perform end |
#bootstrap_carousel_item(options = {}, &block) ⇒ Object
35 36 37 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 35 def bootstrap_carousel_item( = {}, &block) Twitter::Bootstrap::Components::V4::CarouselItem.new(self, , &block).perform end |
#bootstrap_collapse(options) ⇒ Object
39 40 41 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 39 def bootstrap_collapse() Twitter::Bootstrap::Components::V4::Collapse.new().perform end |
#bootstrap_dropdown(options) ⇒ Object
43 44 45 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 43 def bootstrap_dropdown() Twitter::Bootstrap::Components::V4::Dropdown.new().perform end |
#bootstrap_flash ⇒ Object
add-on
48 49 50 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 48 def bootstrap_flash Twitter::Bootstrap::Components::V4::Flash.new(self).perform end |
#bootstrap_form(options) ⇒ Object
52 53 54 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 52 def bootstrap_form() Twitter::Bootstrap::Components::V4::Form.new().perform end |
#bootstrap_form_for(object, *args, &block) ⇒ Object
add-on
61 62 63 64 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 61 def bootstrap_form_for(object, *args, &block) = args. simple_form_for(object, *(args << .merge(builder: Twitter::Bootstrap::Components::Rails::V4::DefaultFormBuilder, :defaults => { :input_html => { :class => "form-control" } })), &block) end |
#bootstrap_input_group(options) ⇒ Object
66 67 68 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 66 def bootstrap_input_group() Twitter::Bootstrap::Components::V4::InputGroup.new().perform end |
#bootstrap_jumbotron(options) ⇒ Object
70 71 72 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 70 def bootstrap_jumbotron() Twitter::Bootstrap::Components::V4::Jumbotron.new().perform end |
#bootstrap_list_group(options) ⇒ Object
74 75 76 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 74 def bootstrap_list_group() Twitter::Bootstrap::Components::V4::ListGroup.new().perform end |
#bootstrap_modal(options) ⇒ Object
78 79 80 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 78 def bootstrap_modal() Twitter::Bootstrap::Components::V4::Modal.new().perform end |
#bootstrap_nav(options = {}, &block) ⇒ Object
82 83 84 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 82 def bootstrap_nav( = {}, &block) Twitter::Bootstrap::Components::V4::Nav.new(self, , &block).perform end |
#bootstrap_nav_item(options = {}, &block) ⇒ Object
86 87 88 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 86 def bootstrap_nav_item( = {}, &block) Twitter::Bootstrap::Components::V4::NavItem.new(self, , &block).perform end |
#bootstrap_navbar(options) ⇒ Object
90 91 92 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 90 def () Twitter::Bootstrap::Components::V4::Navbar.new().perform end |
#bootstrap_navbar_brand(options = {}, &block) ⇒ Object
94 95 96 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 94 def ( = {}, &block) Twitter::Bootstrap::Components::V4::NavbarBrand.new(self, , &block).perform end |
#bootstrap_pagination(options) ⇒ Object
98 99 100 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 98 def bootstrap_pagination() Twitter::Bootstrap::Components::V4::Pagination.new().perform end |
#bootstrap_popover(options) ⇒ Object
102 103 104 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 102 def bootstrap_popover() Twitter::Bootstrap::Components::V4::Popover.new().perform end |
#bootstrap_portrait_card(options = {}, &block) ⇒ Object
56 57 58 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 56 def bootstrap_portrait_card( = {}, &block) Twitter::Bootstrap::Components::V4::PortraitCard.new(self, , &block).perform end |
#bootstrap_progress(options) ⇒ Object
106 107 108 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 106 def bootstrap_progress() Twitter::Bootstrap::Components::V4::Progress.new().perform end |
#bootstrap_scrollspy(options) ⇒ Object
110 111 112 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 110 def bootstrap_scrollspy() Twitter::Bootstrap::Components::V4::Scrollspy.new().perform end |
#bootstrap_tooltip(options) ⇒ Object
114 115 116 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 114 def bootstrap_tooltip() Twitter::Bootstrap::Components::V4::Tooltip.new().perform end |
#card_block(options = {}, &block) ⇒ Object
subhelpers
120 121 122 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 120 def card_block( = {}, &block) Twitter::Bootstrap::Components::V4::Card::Block.new(self, , &block).perform end |
#card_blockquote(options = {}, &block) ⇒ Object
128 129 130 |
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 128 def card_blockquote( = {}, &block) Twitter::Bootstrap::Components::V4::Card::Blockquote.new(self, , &block).perform end |