Module: Twitter::Bootstrap::Components::Rails::V4::ComponentsHelper

Defined in:
app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb

Instance Method Summary collapse

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(options, &block)
  Twitter::Bootstrap::Components::V4::Alert.new(self, options, &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(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Badge.new(self, options, &block).perform
end

#bootstrap_breadcrumb(options) ⇒ Object



15
16
17
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 15

def bootstrap_breadcrumb(options)
  Twitter::Bootstrap::Components::V4::Breadcrumb.new(options).perform
end

#bootstrap_button(options = {}, &block) ⇒ Object



19
20
21
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 19

def bootstrap_button(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Button.new(self, options, &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 bootstrap_button_group(options = {}, &block)
  Twitter::Bootstrap::Components::V4::ButtonGroup.new(self, options, &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(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Card.new(self, options, &block).perform
end


31
32
33
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 31

def bootstrap_carousel(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Carousel.new(self, options, &block).perform
end


35
36
37
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 35

def bootstrap_carousel_item(options = {}, &block)
  Twitter::Bootstrap::Components::V4::CarouselItem.new(self, options, &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(options)
  Twitter::Bootstrap::Components::V4::Collapse.new(options).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(options)
  Twitter::Bootstrap::Components::V4::Dropdown.new(options).perform
end

#bootstrap_flashObject

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(options)
  Twitter::Bootstrap::Components::V4::Form.new(options).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)
  options = args.extract_options!
  simple_form_for(object, *(args << options.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(options)
  Twitter::Bootstrap::Components::V4::InputGroup.new(options).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(options)
  Twitter::Bootstrap::Components::V4::Jumbotron.new(options).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(options)
  Twitter::Bootstrap::Components::V4::ListGroup.new(options).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(options)
  Twitter::Bootstrap::Components::V4::Modal.new(options).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(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Nav.new(self, options, &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(options = {}, &block)
  Twitter::Bootstrap::Components::V4::NavItem.new(self, options, &block).perform
end

#bootstrap_navbar(options) ⇒ Object



90
91
92
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 90

def bootstrap_navbar(options)
  Twitter::Bootstrap::Components::V4::Navbar.new(options).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 bootstrap_navbar_brand(options = {}, &block)
  Twitter::Bootstrap::Components::V4::NavbarBrand.new(self, options, &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(options)
  Twitter::Bootstrap::Components::V4::Pagination.new(options).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(options)
  Twitter::Bootstrap::Components::V4::Popover.new(options).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(options = {}, &block)
  Twitter::Bootstrap::Components::V4::PortraitCard.new(self, options, &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(options)
  Twitter::Bootstrap::Components::V4::Progress.new(options).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(options)
  Twitter::Bootstrap::Components::V4::Scrollspy.new(options).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(options)
  Twitter::Bootstrap::Components::V4::Tooltip.new(options).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(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Card::Block.new(self, options, &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(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Card::Blockquote.new(self, options, &block).perform
end


132
133
134
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 132

def card_footer(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Card::Footer.new(self, options, &block).perform
end

#card_header(options = {}, &block) ⇒ Object



124
125
126
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 124

def card_header(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Card::Header.new(self, options, &block).perform
end