Hi:
I'm using the DataGrid widget as described here:
http://docs.turbogears.org/1.0/IntroductionToWidgets
Specifically, I'm using a Kid Element as below to fill in one of the
columns in my DataGrid.
def makeTeamLink(team):
link = Element('a',href='/team/%d' % team.id)
link.text = team
return link
What I want to be able to do is have an image to click on instead of the
text. In normal HTML, I'd do this by wrapping an image tag inside of an
anchor tag. Does anyone know of a way to build an Element to generate
this html? I've tried a couple things, but haven't hit upon the right
combination.
-Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---