sphinx-needs icon indicating copy to clipboard operation
sphinx-needs copied to clipboard

DataTable config per needtable

Open danwos opened this issue 3 years ago • 0 comments

.. needtable:: shall get an option to define the js-based configuration of the DataTable package.

As this configuration can be quite huge and complex, there shall be a new option needs_datatable_config for the conf.py file:

needs_datatable_config = {
  "config_1": {...},
  "config_2": {...},
}
.. needtable::
   :config: config_1

The config_1 dict can contain any kind of elements. It is set in the JS code as js-dict for the config. So the elements must match the allowed config from DataTables

danwos avatar Nov 12 '21 15:11 danwos