Class: TwitterBootstrapMarkup::Input

Inherits:
Tag
  • Object
show all
Includes:
TwitterBootstrapMarkup::InputSize::InstanceMethods
Defined in:
lib/twitter_bootstrap_markup/input.rb

Constant Summary collapse

TYPES =
[:text, :hidden, :email, :password, :button, :checkbox, :radio]

Constants included from Popover

Popover::POSITIONS

Constants included from Tooltip

Tooltip::POSITIONS

Instance Attribute Summary

Attributes inherited from Tag

#attributes, #children, #name

Instance Method Summary collapse

Methods inherited from Tag

#append, block, inline, #prepend, #to_s

Methods included from SidePosition

#pull_left, #pull_right

Methods included from Popover

#popover

Methods included from Tooltip

#tooltip

Constructor Details

#initialize(type, attributes = {}, &block) ⇒ Input

Returns a new instance of Input.



7
8
9
# File 'lib/twitter_bootstrap_markup/input.rb', line 7

def initialize(type, attributes={}, &block)
  super(:input, {:type => type}.merge(attributes), &block)
end