Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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)

TableContainer_initial.patch (16.5 KB) - added by Shane O'Sullivan 10 years ago.
Updated patch to apply the right class to labels
TableContainer_initial.2.patch (20.0 KB) - added by Shane O'Sullivan 10 years ago.
Updated patch with support for the 'colspan' attribute, and associated tests
TableContainer_final.patch (20.4 KB) - added by Shane O'Sullivan 10 years ago.
Final patch

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by Adam Peller

Owner: changed from Adam Peller to dante

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?

comment:2 Changed 10 years ago by Shane O'Sullivan

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 10 years ago by Shane O'Sullivan

Updated patch to apply the right class to labels

comment:3 Changed 10 years ago by dante

Milestone: tbd1.4

can go in early 1.4 provided the user docs are in order (also need to review code)

Changed 10 years ago by Shane O'Sullivan

Updated patch with support for the 'colspan' attribute, and associated tests

comment:4 Changed 10 years ago by dante

Milestone: 1.4future
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.

Changed 10 years ago by Shane O'Sullivan

Attachment: TableContainer_final.patch added

Final patch

comment:5 Changed 10 years ago by Shane O'Sullivan

Resolution: fixed
Status: newclosed

This widget has been added to Dojox

comment:6 Changed 10 years ago by Adam Peller

Milestone: future1.4
Note: See TracTickets for help on using tickets.