Package gluon :: Module html :: Class A
[hide private]
[frames] | no frames]

Class A

source code

  object --+        
XmlComponent --+    
             DIV --+

Generates an A() link.
A() in web2py is really important and with the included web2py.js
allows lots of Ajax interactions in the page

On top of "usual" `_attributes`, it takes

    callback: an url to call but not redirect to
    cid: if you want to load the _href into an element of the page (component)
        pass its id (without the #) here
    delete: element to delete after calling callback
    target: same thing as cid
    confirm: text to display upon a callback with a delete
    noconfirm: don't display alert upon a callback with delete

Instance Methods [hide private]
generates the xml for this component.
source code

Inherited from DIV: __delitem__, __getitem__, __init__, __len__, __nonzero__, __setitem__, __str__, append, element, elements, flatten, insert, sibling, siblings, update

Inherited from XmlComponent: __add__, __mul__, add_class, remove_class

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

Class Variables [hide private]
  tag = 'a'

Inherited from DIV: regex_attr, regex_class, regex_id, regex_tag

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]


source code 

generates the xml for this component.

Overrides: XmlComponent.xml