Class: Bootstrap::Component::HorizontalForm

Inherits:
Form show all
Defined in:
mod/bootstrap/lib/bootstrap/component/horizontal_form.rb

Instance Method Summary collapse

Methods inherited from Form

#render_content

Methods inherited from Bootstrap::Component

add_div_method, add_tag_method, #append, #initialize, #insert, #prepend, render, #render

Methods included from Delegate

#method_missing, #respond_to_missing?

Methods included from BasicTags

#html

Constructor Details

This class inherits a constructor from Bootstrap::Component

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bootstrap::Delegate

Instance Method Details

#left_col_widthObject



4
5
6
# File 'mod/bootstrap/lib/bootstrap/component/horizontal_form.rb', line 4

def left_col_width
  @child_args.last && @child_args.last[0] || 2
end

#right_col_widthObject



8
9
10
# File 'mod/bootstrap/lib/bootstrap/component/horizontal_form.rb', line 8

def right_col_width
  @child_args.last && @child_args.last[1] || 10
end