1.1.0 • Published 9 months ago

@gethinode/mod-simple-datatables v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Hinode Module - Simple Datatables

About

Logo

Hinode is a clean blog theme for Hugo, an open-source static site generator. Hinode is available as a template, and a main theme. This repository maintains a Hugo module to add simple-datatables to a Hinode site. Visit the Hinode documentation site for installation instructions.

Contributing

This module uses semantic-release to automate the release of new versions. The package uses husky and commitlint to ensure commit messages adhere to the Conventional Commits specification. You can run npx git-cz from the terminal to help prepare the commit message.

Usage

Simple datatables is compatible with Bootstrap tables. It uses Hugo's i18n folder for the translation tables of multilingual sites. Add the attribute data-table to the class of any table. The following arguments are supported:

ArgumentDefaultDescription
data-table-sortabletrueToggle the ability to sort the columns.
data-table-pagingtrueWhether paging is enabled for the table.
data-table-paging-option-perPage10Paging option: Sets the maximum number of rows to display on each page. Type: int
data-table-paging-option-perPageSelect[5, 10, 20, 50, ["{{ T "tablePerPageSelectAll" }}", -1]]Paging option: Sets the per page options in the dropdown. i18 translation id for all: tablePerPageSelectAll
data-table-searchabletrueToggle the ability to search the dataset.
1.1.0

9 months ago

1.0.15

9 months ago

1.0.14

9 months ago

1.0.11

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago