The most direct way to organize widgets in a tabular grid is
using WTable. This widget renders as an HTML
Each table cell is a Container to which contents can be added. The table will grow as necessary while you add data to it.
Our first example shows a plain table, with default browser styling.
If you only need to display a static table (with a fixed number of rows and columns), then you might just as well consider using a WTemplate containing the HTML markup for a table, and providing the contents (widgets or strings) by substituting placeholders.
In contrast, the
WTable class is suitable when the
table is to be constructed dynamically, based on information
that may be variable in size.
Finally, you may want to consider using a WTableView if you would like to display large amounts of data (more than could fit in memory!), or if you would like the user to be able to resort the data or resize columns.
The bootstrap theme provides optional markup for the
table. These styles are enabled by adding the
style class, and other optional style classes. The other styling
options are enabled by adding one of the following classes: