Add support for checkbox columns to the datagrid.

Review Request #5141 — Created Dec. 18, 2013 and submitted — Latest diff uploaded

Information

Djblets
master

Reviewers

Add support for checkbox columns to the datagrid.

This introduces CheckboxColumn, which can be used by a datagrid to
handle multiple selection of entries. It will display a checkbox for
every row, as well as a checkbox in the header that, when clicked, will
toggle selection of all the checkboxes in each row.

This is based heavily on on Graeme Coupar's work on
https://reviews.reviewboard.org/r/3796/

Tested with the accompanying change for Review Board. Tested:

  • Toggling individual checkboxes.
  • Toggling the checkbox in the header.
  • Adding/removing the column.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

orig
1
2
3
AUTHORS
djblets/datagrid/grids.py
djblets/static/djblets/css/datagrid.less
djblets/static/djblets/js/datagrid.js
Loading...