Class: Twitter::Bootstrap::Components::Rails::V4::ViewHelper
- Inherits:
-
Rao::ViewHelper::Base
- Object
- Rao::ViewHelper::Base
- Twitter::Bootstrap::Components::Rails::V4::ViewHelper
- Defined in:
- app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb
Instance Method Summary collapse
- #alert(options, &block) ⇒ Object
- #badge(options = {}, &block) ⇒ Object
- #breadcrumb(options) ⇒ Object
- #button(options = {}, &block) ⇒ Object
- #button_group(options = {}, &block) ⇒ Object
- #card(options = {}, &block) ⇒ Object
-
#card_block(options = {}, &block) ⇒ Object
subhelpers.
- #card_blockquote(options = {}, &block) ⇒ Object
- #card_footer(options = {}, &block) ⇒ Object
- #card_header(options = {}, &block) ⇒ Object
- #carousel(options = {}, &block) ⇒ Object
- #carousel_item(options = {}, &block) ⇒ Object
- #collapse(options) ⇒ Object
- #dropdown(options) ⇒ Object
-
#flash ⇒ Object
add-on.
- #form(options) ⇒ Object
-
#form_for(object, *args, &block) ⇒ Object
add-on.
- #input_group(options) ⇒ Object
- #jumbotron(options) ⇒ Object
- #list_group(options) ⇒ Object
- #modal(options) ⇒ Object
- #nav(options = {}, &block) ⇒ Object
- #nav_item(options = {}, &block) ⇒ Object
- #navbar(options) ⇒ Object
- #navbar_brand(options = {}, &block) ⇒ Object
- #pagination(options) ⇒ Object
- #popover(options) ⇒ Object
- #portrait_card(options = {}, &block) ⇒ Object
- #progress(options) ⇒ Object
- #scrollspy(options) ⇒ Object
- #tooltip(options) ⇒ Object
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(, &block) Twitter::Bootstrap::Components::V4::Alert.new(c, , &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( = {}, &block) Twitter::Bootstrap::Components::V4::Badge.new(c, , &block).perform end |
#breadcrumb(options) ⇒ Object
15 16 17 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 15 def () Twitter::Bootstrap::Components::V4::Breadcrumb.new().perform end |
#button(options = {}, &block) ⇒ Object
19 20 21 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 19 def ( = {}, &block) Twitter::Bootstrap::Components::V4::Button.new(c, , &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 ( = {}, &block) Twitter::Bootstrap::Components::V4::ButtonGroup.new(c, , &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( = {}, &block) Twitter::Bootstrap::Components::V4::Card.new(c, , &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( = {}, &block) Twitter::Bootstrap::Components::V4::Card::Block.new(c, , &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( = {}, &block) Twitter::Bootstrap::Components::V4::Card::Blockquote.new(c, , &block).perform end |
#card_footer(options = {}, &block) ⇒ Object
132 133 134 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 132 def ( = {}, &block) Twitter::Bootstrap::Components::V4::Card::.new(c, , &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( = {}, &block) Twitter::Bootstrap::Components::V4::Card::Header.new(c, , &block).perform end |
#carousel(options = {}, &block) ⇒ Object
31 32 33 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 31 def carousel( = {}, &block) Twitter::Bootstrap::Components::V4::Carousel.new(c, , &block).perform end |
#carousel_item(options = {}, &block) ⇒ Object
35 36 37 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 35 def carousel_item( = {}, &block) Twitter::Bootstrap::Components::V4::CarouselItem.new(c, , &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() Twitter::Bootstrap::Components::V4::Collapse.new().perform end |
#dropdown(options) ⇒ Object
43 44 45 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 43 def dropdown() Twitter::Bootstrap::Components::V4::Dropdown.new().perform end |
#flash ⇒ Object
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() Twitter::Bootstrap::Components::V4::Form.new().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) = args. simple_form_for(object, *(args << .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() Twitter::Bootstrap::Components::V4::InputGroup.new().perform end |
#jumbotron(options) ⇒ Object
70 71 72 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 70 def jumbotron() Twitter::Bootstrap::Components::V4::Jumbotron.new().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() Twitter::Bootstrap::Components::V4::ListGroup.new().perform end |
#modal(options) ⇒ Object
78 79 80 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 78 def modal() Twitter::Bootstrap::Components::V4::Modal.new().perform end |
#nav(options = {}, &block) ⇒ Object
82 83 84 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 82 def nav( = {}, &block) Twitter::Bootstrap::Components::V4::Nav.new(c, , &block).perform end |
#nav_item(options = {}, &block) ⇒ Object
86 87 88 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 86 def nav_item( = {}, &block) Twitter::Bootstrap::Components::V4::NavItem.new(c, , &block).perform end |
#navbar(options) ⇒ Object
90 91 92 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 90 def () Twitter::Bootstrap::Components::V4::.new().perform end |
#navbar_brand(options = {}, &block) ⇒ Object
94 95 96 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 94 def ( = {}, &block) Twitter::Bootstrap::Components::V4::.new(c, , &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() Twitter::Bootstrap::Components::V4::Pagination.new().perform end |
#popover(options) ⇒ Object
102 103 104 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 102 def popover() Twitter::Bootstrap::Components::V4::Popover.new().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( = {}, &block) Twitter::Bootstrap::Components::V4::PortraitCard.new(c, , &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() Twitter::Bootstrap::Components::V4::Progress.new().perform end |
#scrollspy(options) ⇒ Object
110 111 112 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 110 def scrollspy() Twitter::Bootstrap::Components::V4::Scrollspy.new().perform end |
#tooltip(options) ⇒ Object
114 115 116 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v4/view_helper.rb', line 114 def tooltip() Twitter::Bootstrap::Components::V4::Tooltip.new().perform end |