Multi-line cells in lists: showVerticalTabs property?
Posted: Mon Aug 12, 2013 3:48 pm
The new field object is very close to what I need in terms of multiple apparent lines per paragraph, with two exceptions.
Currently, if one includes vertical tabs in a line "(VT", 0x11), in some circumstances they will be rendered as new lines.
The docs say this is governed by the dontWrap property: when true VTs are rendered as before as just non-printable characters, but when false they're rendered as new lines.
This is a good start, but making this rendering dependent on dontWrap has two limitations:
1. It requires us to set the dontWrap to true on any field where we want rendering to appear consistent with all earlier versions of LC, and indeed all earlier xTalks. The Message Box, for example, doesn't have its dontWrap set so there's no way to see the data as as it used to be rendered, with VTs and CRs being visually indistinguishable.
2. It prevents us from having HTML-style lists, in which a given cell may contain more than one line, e.g.:
How difficult would it be to add a showVerticalTabs property for fields (maybe with a synonym of showVTs)?
Perhaps this could be implemented such that its default would follow the current convention; that is, when dontWrap is set, the showVTs gets set to reflect what we currently have.
But by making this an independent setting we would then have the freedom to turn off the rendering of VTs as new lines in normal fields, and gain the ability to have multi-line cells in list fields.
The latter is something I sorely need very soon, so I would very much appreciate any input from those of you familiar with the engine in a position to advice on this feasibility.
Currently, if one includes vertical tabs in a line "(VT", 0x11), in some circumstances they will be rendered as new lines.
The docs say this is governed by the dontWrap property: when true VTs are rendered as before as just non-printable characters, but when false they're rendered as new lines.
This is a good start, but making this rendering dependent on dontWrap has two limitations:
1. It requires us to set the dontWrap to true on any field where we want rendering to appear consistent with all earlier versions of LC, and indeed all earlier xTalks. The Message Box, for example, doesn't have its dontWrap set so there's no way to see the data as as it used to be rendered, with VTs and CRs being visually indistinguishable.
2. It prevents us from having HTML-style lists, in which a given cell may contain more than one line, e.g.:
Code: Select all
-----------------------------
r1item1 | r1item2a | r1item3
| r1item2b |
| r2item2c |
-----------------------------
r2item1 | r2item2a | r2item3
| r2item2b |
-----------------------------
r3item1 | r3item2a | r3item3
-----------------------------
r4item1 | r4item2a | r4item3
| r4item2b |
-----------------------------
Perhaps this could be implemented such that its default would follow the current convention; that is, when dontWrap is set, the showVTs gets set to reflect what we currently have.
But by making this an independent setting we would then have the freedom to turn off the rendering of VTs as new lines in normal fields, and gain the ability to have multi-line cells in list fields.
The latter is something I sorely need very soon, so I would very much appreciate any input from those of you familiar with the engine in a position to advice on this feasibility.