Package turbogears :: Package widgets :: Module forms :: Class ImageButton
[hide private]

Class ImageButton

source code


Nested Classes [hide private]
  template_c

Inherited from base.Widget: __metaclass__

Instance Methods [hide private]

Inherited from Button: update_params

Inherited from FormField: __init__

Inherited from InputWidget: adjust_value, display

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

Inherited from base.Widget (private): _get_is_named

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

Class Variables [hide private]
  template = '\n <input xmlns:py="http://purl.org/kid/ns#"\n ...
  params = ['src', 'width', 'height', 'alt', 'attrs', 'field_cla...
  params_doc = {'alt': 'Alternate text for the image', 'attrs': ...
  src = None
  width = None
  height = None
  alt = None
  _param_alt = None
  _param_height = None
  _param_src = None
  _param_width = None
  template_vars = ['src', 'width', 'height', 'alt', 'attrs', 'fi...

Inherited from Button: attrs

Inherited from Button (private): _param_attrs

Inherited from FormField: css_classes, field_class, help_text, label

Inherited from InputWidget: convert, validator

Inherited from InputWidget (private): _param_convert

Inherited from base.Widget: css, default, javascript

Inherited from base.Widget (private): _locked

Properties [hide private]

Inherited from FormField: field_id, is_required, name

Inherited from InputWidget: error, fq_name, is_validated, name_path, path

Inherited from base.Widget: is_named

Inherited from object: __class__

Class Variable Details [hide private]

template

Value:
'''
    <input xmlns:py="http://purl.org/kid/ns#"
        type="image"
        src="${src}"
        width="${width}"
        height="${height}"
        alt="${alt}"
        class="${field_class}"
...

params

Value:
['src',
 'width',
 'height',
 'alt',
 'attrs',
 'field_class',
 'css_classes',
 'convert']

params_doc

Value:
{'alt': 'Alternate text for the image',
 'attrs': 'Dictionary containing extra (X)HTML attributes for the butt\
on input tag',
 'convert': 'Should the value be coerced by the validator at display?'\
,
 'css_classes': 'List of extra CSS classes for the field',
 'field_class': 'CSS class for the field',
 'height': 'Height of the image',
...

template_vars

Value:
['src',
 'width',
 'height',
 'alt',
 'attrs',
 'field_class',
 'css_classes',
 'convert']