Class: Twitter::Bootstrap::Components::Rails::V4::ViewHelper

Inherits:
Rao::ViewHelper::Base
  • Object
show all
Defined in:
app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#alert(options, &block) ⇒ Object



7
8
9
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 7

def alert(options, &block)
  Twitter::Bootstrap::Components::V4::Alert.new(c, options, &block).perform
end

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



11
12
13
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 11

def badge(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Badge.new(c, options, &block).perform
end


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

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

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



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

def button(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Button.new(c, options, &block).perform
end

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



23
24
25
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 23

def button_group(options = {}, &block)
  Twitter::Bootstrap::Components::V4::ButtonGroup.new(c, options, &block).perform
end

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



27
28
29
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 27

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

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

subhelpers



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

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

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



128
129
130
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 128

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


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

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

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



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

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


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

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


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

def carousel_item(options = {}, &block)
  Twitter::Bootstrap::Components::V4::CarouselItem.new(c, options, &block).perform
end

#collapse(options) ⇒ Object



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

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


43
44
45
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 43

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

#flashObject

add-on



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

def flash
  Twitter::Bootstrap::Components::V4::Flash.new(c).perform
end

#form(options) ⇒ Object



52
53
54
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 52

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

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

add-on



61
62
63
64
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 61

def 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

#input_group(options) ⇒ Object



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

def input_group(options)
  Twitter::Bootstrap::Components::V4::InputGroup.new(options).perform
end

#jumbotron(options) ⇒ Object



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

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

#list_group(options) ⇒ Object



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

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


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

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


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

def nav(options = {}, &block)
  Twitter::Bootstrap::Components::V4::Nav.new(c, options, &block).perform
end


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

def nav_item(options = {}, &block)
  Twitter::Bootstrap::Components::V4::NavItem.new(c, options, &block).perform
end


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

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


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

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

#pagination(options) ⇒ Object



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

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

#popover(options) ⇒ Object



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

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

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



56
57
58
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 56

def portrait_card(options = {}, &block)
  Twitter::Bootstrap::Components::V4::PortraitCard.new(c, options, &block).perform
end

#progress(options) ⇒ Object



106
107
108
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 106

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

#scrollspy(options) ⇒ Object



110
111
112
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 110

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

#tooltip(options) ⇒ Object



114
115
116
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 114

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