Class: Ext::Form

Inherits:
Panel show all
Defined in:
lib/selenium-extjs/component/Form.rb

Instance Attribute Summary collapse

Attributes inherited from Panel

#items

Attributes inherited from Component

#parent

Instance Method Summary collapse

Methods inherited from Panel

#title

Methods inherited from Component

#getId, #highlight, #initialize, #method_missing, #node, #selector, #wait_for_ajax

Constructor Details

This class inherits a constructor from Ext::Component

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ext::Component

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields.



5
6
7
# File 'lib/selenium-extjs/component/Form.rb', line 5

def fields
  @fields
end

Instance Method Details

#init_componentObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/selenium-extjs/component/Form.rb', line 7

def init_component()
  super()
   
#       # load all fields.
#       fields = @selenium.get_eval("window.Ext.getCmp('#{@id}').findBy(function(el) { return el.getXTypes().indexOf('/field/') != -1 }).map(function(el) { return el.getId() })");
#       @fields = {}
#       fields.split(",").each do |field_id|
#         field = @selenium.get_cmp(field_id, self);
#         @fields[field.getName().to_sym] = field
#         p field_id
#       end
# #      print @fields
  
end