Skip to content

Commit

Permalink
Added table_factory docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuluPro committed Jan 18, 2018
1 parent 9b4dde7 commit a16e764
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/pages/generic-mixins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ template.

The following view parameters are supported:

- ``table_class`` –- the table class to use, e.g. ``SimpleTable``
- ``table_class`` –- the table class to use, e.g. ``SimpleTable``, if not specfied
a default table will be provided.
- ``table_data`` (or ``get_table_data()``) -- the data used to populate the table
- ``context_table_name`` -- the name of template variable containing the table object
- ``table_pagination`` (or ``get_table_pagination``) -- pagination
Expand Down Expand Up @@ -60,7 +61,7 @@ when one isn't explicitly defined.


Multiple tables using `.MultiTableMixin`
--------------------------------------------
---------------------------------------

If you need more than one table in a single view you can use `MultiTableMixin`.
It manages multiple tables for you and takes care of adding the appropriate
Expand Down
5 changes: 4 additions & 1 deletion docs/pages/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ There are several topic you can read into to futher customize the table:
- Table data
- :ref:`Populating the table with data <table_data>`,
- :ref:`Filtering table data <filtering>`
- Custumizing the rendered table
- Customizing the rendered table
- :ref:`Headers and footers <column-headers-and-footers>`
- :ref:`pinned_rows`
- :ref:`api-public`

If you think you don't have a lot customization to do and don't want to make
a full class declaration use ``django_tables2.tables.table_factory``.

0 comments on commit a16e764

Please sign in to comment.