Class: Jasonette::Body::Footer::Input

Inherits:
Jasonette::Base show all
Defined in:
lib/jasonette/core/body/footer/input.rb

Constant Summary

Constants included from Properties

Properties::DEFAULT_IS_ARRAY, Properties::TYPES

Instance Attribute Summary

Attributes inherited from Jasonette::Base

#attributes, #context

Instance Method Summary collapse

Methods inherited from Jasonette::Base

#_method, #array!, #as_json, #attr_value, #attributes!, #empty?, #encode, #extract!, #implicit_set!, #initialize, #inline, #klass, #merge!, #method_missing, #set!, #with_attributes

Methods included from Properties

#all_instance_variable_set, #create_new_klass, #get_default_for_property, #get_ivar, #has_any_property_type?, #has_property?, included, #ivar_for_property, #klass_for_property, #merge_properties, #parent_jasonette, #parent_jasonette_set, #prop, #properties_empty?, #property_get!, #property_names, #property_sender, #property_set!, #property_variables, #set_ivar

Constructor Details

This class inherits a constructor from Jasonette::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Jasonette::Base

Instance Method Details

#left(uri = nil, &block) ⇒ Object



5
6
7
# File 'lib/jasonette/core/body/footer/input.rb', line 5

def left uri=nil, &block
  append Jasonette::Items.new(context).image(uri, true, "image", &block), "left"
end

#right(caption = nil, &block) ⇒ Object



9
10
11
# File 'lib/jasonette/core/body/footer/input.rb', line 9

def right caption=nil, &block
  append Jasonette::Items.new(context).label(caption, true, &block), "right"
end

#textfield(name = nil, value = nil, &block) ⇒ Object



13
14
15
# File 'lib/jasonette/core/body/footer/input.rb', line 13

def textfield name=nil, value=nil, &block
  append Jasonette::Items.new(context).textfield(name, value, true, &block), "textfield"
end