Package turbogears :: Package widgets :: Module big_widgets :: Class AutoCompleteTextField

Class AutoCompleteTextField

source code

   object --+                
            |                
  base.Widget --+            
                |            
forms.InputWidget --+        
                    |        
      forms.FormField --+    
                        |    
          forms.TextField --+
                            |
           object --+       |
                    |       |
          base.Widget --+   |
                        |   |
             AutoComplete --+
                            |
                           AutoCompleteTextField

Text field with auto complete functionality.

Instance Methods

Inherited from forms.FormField: __init__, field_id, is_required, update_params

Inherited from forms.InputWidget: adjust_value, display, error, fq_name, is_validated, name_path, path, render

Inherited from base.Widget: __call__, __repr__, __setattr__, is_named, retrieve_css, retrieve_javascript

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables
  template = ...
hash(x)

Inherited from forms.TextField: attrs, params, params_doc

Inherited from forms.FormField: css_classes, field_class, help_text, label, name

Inherited from forms.InputWidget: convert, validator

Inherited from AutoComplete: complete_delay, css, javascript, min_chars, only_suggest, result_name, search_controller, search_param, show_spinner, take_focus

Inherited from base.Widget: __metaclass__, default, engine_name

Properties

Inherited from object: __class__

Class Variable Details

template

hash(x)

Value:
"""
    <span xmlns:py="http://purl.org/kid/ns#" class="${field_class}">
    <script type="text/javascript">
        AutoCompleteManager${field_id} = new AutoCompleteManager('${fi\
eld_id}', '${field_id}', null,
        '${search_controller}', '${search_param}', '${result_name}', $\
{str(only_suggest).lower()},
        '${show_spinner and tg.url([tg.widgets, 'turbogears.widgets/sp\
...