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)
  Twitter::Bootstrap::Components::V4::Carousel.new(options).perform
end

#bootstrap_collapse(options) ⇒ Object



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

def bootstrap_collapse(options)
  Twitter::Bootstrap::Components::V4::Collapse.new(options).perform
end

#bootstrap_dropdown(options) ⇒ Object



39
40
41
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 39

def bootstrap_dropdown(options)
  Twitter::Bootstrap::Components::V4::Dropdown.new(options).perform
end

#bootstrap_flashObject

add-on



44
45
46
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 44

def bootstrap_flash
  Twitter::Bootstrap::Components::V4::Flash.new(self).perform
end

#bootstrap_form(options) ⇒ Object



48
49
50
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 48

def bootstrap_form(options)
  Twitter::Bootstrap::Components::V4::Form.new(options).perform
end

#bootstrap_form_for(object, *args, &block) ⇒ Object

add-on



53
54
55
56
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 53

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



58
59
60
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 58

def bootstrap_input_group(options)
  ITwitter::Bootstrap::Components::V4::InputGroup.new(options).perform
end

#bootstrap_jumbotron(options) ⇒ Object



62
63
64
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 62

def bootstrap_jumbotron(options)
  Twitter::Bootstrap::Components::V4::Jumbotron.new(options).perform
end

#bootstrap_list_group(options) ⇒ Object



66
67
68
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 66

def bootstrap_list_group(options)
  Twitter::Bootstrap::Components::V4::ListGroup.new(options).perform
end

#bootstrap_modal(options) ⇒ Object



70
71
72
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 70

def bootstrap_modal(options)
  Twitter::Bootstrap::Components::V4::Modal.new(options).perform
end

#bootstrap_nav(options) ⇒ Object



74
75
76
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 74

def bootstrap_nav(options)
  Twitter::Bootstrap::Components::V4::Nav.new(options).perform
end

#bootstrap_navbar(options) ⇒ Object



78
79
80
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 78

def bootstrap_navbar(options)
  Twitter::Bootstrap::Components::V4::Navbar.new(options).perform
end

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



82
83
84
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 82

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

#bootstrap_pagination(options) ⇒ Object



86
87
88
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 86

def bootstrap_pagination(options)
  Twitter::Bootstrap::Components::V4::Pagination.new(options).perform
end

#bootstrap_popover(options) ⇒ Object



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

def bootstrap_popover(options)
  Twitter::Bootstrap::Components::V4::Popover.new(options).perform
end

#bootstrap_progress(options) ⇒ Object



94
95
96
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 94

def bootstrap_progress(options)
  Twitter::Bootstrap::Components::V4::Progress.new(options).perform
end

#bootstrap_scrollspy(options) ⇒ Object



98
99
100
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 98

def bootstrap_scrollspy(options)
  Twitter::Bootstrap::Components::V4::Scrollspy.new(options).perform
end

#bootstrap_tooltip(options) ⇒ Object



102
103
104
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 102

def bootstrap_tooltip(options)
  Twitter::Bootstrap::Components::V4::Tooltip.new(options).perform
end

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

subhelpers



108
109
110
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 108

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

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



116
117
118
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 116

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


120
121
122
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 120

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

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



112
113
114
# File 'app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb', line 112

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