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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a322b33deea87f01fee7e745631d23ecb7f02d971fa03e76be08f2243dfd623 |
|
MD5 | ac1153b0f85dcaea44e6e6bd6ef241ab |
|
BLAKE2b-256 | b81945f8a1f1e943c25a1aa76b3564d79f012931f44a6f22f74280e5b6251935 |
Close
Hashes for django_tables2_bulma_template-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2752e58f5b650659387012c512f0f2b3feff79425984df36076f39127917b898 |
|
MD5 | 4e0ab215ca8bd4abf5a767d3c8c7c3f8 |
|
BLAKE2b-256 | fe5bb41d9642c2c89df9aad139c5c23fd01498abacb39c152249280d3d01667e |