Icon Header

tw.forms.datagrid

Widgets to present data in tabular form

Generic widget to present and manipulate data in a grid (tabular) form.

Adapted from turbogears.widgets.datagrid

class tw.forms.datagrid.DataGrid(*args, **kw)

Generic widget to present and manipulate data in a grid (tabular) form.

The columns to build the grid from are specified with fields ctor argument which is a list. Currently an element can be either a two-element tuple or instance of Column class. If tuple is used it a Column is then build out of it, first element is assumed to be a title and second element - field accessor.

You can specify columns’ data statically, via fields ctor parameter, or dynamically, by via ‘fields’ key.

Previous topic

tw.forms.calendars

Next topic

tw.forms Changelog

This Page

Quick search