Metadata-Version: 2.1
Name: django-tables2-bulma-template
Version: 0.2.0
Summary: A bulma template for django-tables2
Home-page: https://github.com/nkay08/django-tables2_bulma-template
Author: NKay
Author-email: py@nkay.info
License: MIT
Keywords: tables,django,bulma
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.1
Classifier: Framework :: Django :: 3.2
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: JavaScript
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: django-tables2 (>=2.0.0)
Requires-Dist: django (>=2.2.0)

# 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

