tri.tables is a library to make full featured HTML tables easily
Project description
tri.tables
==========
tri.tables is a library to make full featured HTML tables easily.
Simple example
--------------
.. literalinclude:: ../examples/examples/views.py
:pyobject: readme_example_1
And this is what you get:
.. image:: table_example_1.png
Fancy django features
---------------------
Say I have some models:
.. literalinclude:: ../examples/examples/models.py
:pyobject: Foo
.. literalinclude:: ../examples/examples/models.py
:pyobject: Bar
Now I can display a list of Bars in a table like this:
.. literalinclude:: ../examples/examples/views.py
:pyobject: readme_example_2
This gives me a view with filtering, sorting, bulk edit and pagination and this only scratches the surface. Some other features include:
* automatic rowspan
* filtering
* grouping of headers
* link creation
* templates for cells
All these examples and a bigger example using many more features can be found in the examples django project.
Read the full documentation for more.
Running tests
-------------
You need tox installed then just `make test`.
License
-------
BSD
Documentation
-------------
http://tritables.rtfd.org.
=========
Changelog
=========
Here's the recent changes to tri.tables.
.. changelog::
:version: dev
:released: Ongoing
.. change::
:tags: docs
Updated CHANGES.
==========
tri.tables is a library to make full featured HTML tables easily.
Simple example
--------------
.. literalinclude:: ../examples/examples/views.py
:pyobject: readme_example_1
And this is what you get:
.. image:: table_example_1.png
Fancy django features
---------------------
Say I have some models:
.. literalinclude:: ../examples/examples/models.py
:pyobject: Foo
.. literalinclude:: ../examples/examples/models.py
:pyobject: Bar
Now I can display a list of Bars in a table like this:
.. literalinclude:: ../examples/examples/views.py
:pyobject: readme_example_2
This gives me a view with filtering, sorting, bulk edit and pagination and this only scratches the surface. Some other features include:
* automatic rowspan
* filtering
* grouping of headers
* link creation
* templates for cells
All these examples and a bigger example using many more features can be found in the examples django project.
Read the full documentation for more.
Running tests
-------------
You need tox installed then just `make test`.
License
-------
BSD
Documentation
-------------
http://tritables.rtfd.org.
=========
Changelog
=========
Here's the recent changes to tri.tables.
.. changelog::
:version: dev
:released: Ongoing
.. change::
:tags: docs
Updated CHANGES.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tri.tables-0.8.0.tar.gz
(17.9 kB
view hashes)
Built Distribution
Close
Hashes for tri.tables-0.8.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f1b4c57eb52ee6ee5f72097d77356c079b7278740530ad804a43b4a6c5ca86a |
|
MD5 | 8a136e6aaf0056e3598c708e402aa963 |
|
BLAKE2b-256 | 9c556310662158b26d0fb289ed487aa0ff639a186330869e20da4cf3e9456617 |