#8778 closed enhancement (fixed)
Add a TableContainer widget
Reported by: | Shane O'Sullivan | Owned by: | Shane O'Sullivan |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Dojox | Version: | 1.3.0b2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I have written a new simple widget that lays out widgets in a HTML table. It reads a label from the widgets that it contains, and can place them either beside or above the widget. It can be configured by the number of columns, and can apply custom styles to the table and cells.
It is primarily designed to layout form inputs that contain labels, but can of course be used to lay out any widgets, such as content panes.
Attachments (3)
Change History (9)
comment:1 Changed 12 years ago by
Owner: | changed from Adam Peller to dante |
---|
comment:2 Changed 12 years ago by
There's a couple of advantages.
Firstly, it far simpler, you're not writing table, tr, td, applying all the right classes etc.
Secondly, its more configurable - change the dojoType to something else and you get a totally different layout, e.g. AccordionContainer?.
Thirdly, it fits in well with visual design tools.
Fourth, everyone else has one, e.g. Ext, Flex etc.
Fifth, it can be tailored to the size of the browser window at runtime. E.g. if the average width of a cell is too narrow, just decrease the number of columns.
Changed 12 years ago by
Attachment: | TableContainer_initial.patch added |
---|
Updated patch to apply the right class to labels
comment:3 Changed 12 years ago by
Milestone: | tbd → 1.4 |
---|
can go in early 1.4 provided the user docs are in order (also need to review code)
Changed 12 years ago by
Attachment: | TableContainer_initial.2.patch added |
---|
Updated patch with support for the 'colspan' attribute, and associated tests
comment:4 Changed 12 years ago by
Milestone: | 1.4 → future |
---|---|
Owner: | changed from dante to Shane O'Sullivan |
so this is on you at your convenience, provided it has full campus/wiki user docs (or dojo.experimental + stub doc pages explaining the module). Set milestone at your convenience.
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This widget has been added to Dojox
comment:6 Changed 12 years ago by
Milestone: | future → 1.4 |
---|
Thanks Shane. Passing to Pete who usually coordinates the widgets/layout stuff for DojoX. What is the advantage to using div/dojoType over directly constructing a TABLE?