Skip to main content

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 table
  • table: The actual table html element
  • table.thead: The table head
  • table.thead.row: The table head row that contains the column headers
  • table.thead.th: Individual table <th>...</th>
  • table.tbody: The table body
  • table.tbody.row: Individual table row
  • table.tbody.td: Individual data cell
  • table.tbody.empty_text: Text that is shown if table is empty
  • table.tfoot: Footer element of table
  • table.tfoot.row: Footer rows
  • table.tfoot.td: Footer cells
  • pagination: Pagination for this table
  • pagination.previous: Customize html to shown to navigate to previous page
  • pagination.previous.text: Text/Icons shown to navigate to previous page
  • pagination.next: Customize html to shown to navigate to next page
  • pagination.next.text: Text/Icons shown to navigate to next page
  • pagination.range: Range of pages shown in pagination

Metadata

Release files for django-tables2-bulma-template 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tables2-bulma-template 0.2.0
File Size Uploaded
django-tables2_bulma-template-0.2.0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tables2-bulma-template 0.2.0
File Interpreter ABI Platform
django_tables2_bulma_template-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / django-tables2_bulma-template-0.2.0.tar.gz

Download URL django-tables2_bulma-template-0.2.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9c0fb5d4ed284634a2d11d91440701b0259b8cf3d39ce1ea0743097866774908
BLAKE2b-256 checksum
How to use checksums
5e8da76dc4127ef05bfef39007430f942758455c013d3d0619b5592509b6d5b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Release files / django_tables2_bulma_template-0.2.0-py3-none-any.whl

Download URL django_tables2_bulma_template-0.2.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6cef5863fc712afa87a07dd8c1472f0d3eeec6c098435864a5dbf527bee10d3
BLAKE2b-256 checksum
How to use checksums
c19bc6e5d54c068539c8e743c9d94338f1ae5eecf6abd875f23b414f5ca4fbf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page