Skip to content
Snippets Groups Projects
Commit 0ed60981 authored by legac's avatar legac
Browse files

Another way to add a tool tip associate to a Field.

this method works well for FieldSet used with dummy table.
parent 8ff842d2
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,10 @@
dummy = DAL(None)
# the report node with selector
tp_string = "tool tip for the string"
dummy.define_table("foo1",
Field('my_string', 'string'),
Field('my_string', 'string', label= "<span ext:qtip='%s'>%s</span>" % (tp_string, "My String:")),
Field('my_int', 'integer', requires=IS_INT_IN_RANGE(0, 100)),
Field('my_date', 'date'),
Field('my_format', default='html', requires=IS_IN_SET(['html', 'latex', 'pdf'])))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment