A bulma template for django-tables2
Project description
django-tables2_bulma-template
Installation
pip install django_table2_bulma_template
Add to INSTALLED_APPS
in your Django settings.py
:
INSTALLED_APPS = [
...
'django_tables2_bulma_template',
...
]
Setup
In your Django settings.py
set:
DJANGO_TABLES2_TEMPLATE = "django-tables2/bulma.html"
Customization
You can extend the template provided by this package and customize it by overriding blocks. E.g.
# templates/my_bulma_table.html
{% extends 'django-tables2/bulma.html' %}
{% block table %}
Your custom table html
{% endblock table %}
Supported blocks you can override:
table-wrapper
: Container that wraps the tabletable
: The actual table html elementtable.thead
: The table headtable.thead.row
: The table head row that contains the column headerstable.thead.th
: Individual table<th>...</th>
table.tbody
: The table bodytable.tbody.row
: Individual table rowtable.tbody.td
: Individual data celltable.tbody.empty_text
: Text that is shown if table is emptytable.tfoot
: Footer element of tabletable.tfoot.row
: Footer rowstable.tfoot.td
: Footer cellspagination
: Pagination for this tablepagination.previous
: Text/Icons shown to navigate to previous pagepagination.next
: Text/Icons shown to navigate to next pagepagination.range
: Range of pages shown in pagination
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-tables2_bulma-template-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f63de3d98b5c3d3b71d87cd7a1e9723a5391a3298da739a4f71ecf2141841cf7 |
|
MD5 | e0414052eb646580a7662db7083b92e8 |
|
BLAKE2b-256 | 0ee0c55177652ffb2de08806a4b85081ea6b35294fae3b5638b7147658b7e8f5 |
Close
Hashes for django_tables2_bulma_template-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e713caadf6796aa101993e78a585097e5e2430b58a4e5dd78768fb4e90be5a0c |
|
MD5 | 7b8693207eb9e6a3222fa2d1a70d17bc |
|
BLAKE2b-256 | 01c97466fc255211ebc47179a518367a776b2663f5bccf9cb95e3cc01af0cce6 |