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 constructor argument which is a list. An element can be a Column, an accessor (attribute name or function), a tuple (title, accessor) or a tuple (title, accessor, options).

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

Previous topic

tw.forms.calendars

Next topic

tw.forms Changelog

This Page

Quick search