msg = 'this is a very long string ...........' msg += 'this is some more ....' msg += 'and more ...' db.define_table(..., Field='xyz', label=DIV(msg, _style='width: 100px;'), ...)
On Tuesday, October 16, 2012 10:10:20 AM UTC+8, Don_X wrote: > > weheh ! > > Thank you for your response ... but this is not what I am looking for ! > > I know about what you suggested below .. this is how it is declared .. > indeed ! > > Now ... Can the label argument take an HTML helper of somekind, so if the > translation of 'mylabel' happens and it is too long of an expression, > > a way to make it wrap, like in two lines or something !??? ... > > For example : > > db.define_table('mytable', > Field(myfield, label=T('an expression in english'), > ) > > now .. the label says 'an expression in english' > > the same expression in another language happens to be almost twice the > length shown above ! .. do you understand ? .. > now .. how can that translated expression be wrapped a certain way ... > within the label ... in order to occupy almost the same space without > interrupting the table or the form it is shown on ??? ... > > > --