This file gives the necessary instructions to setup the data table, using datatable.js instead of the table by default in dc.js.
- Since:
- 0.5
- TODO
-
- Harmonize container id.
- Warp 'Show datatable' container into the module.
Requires
- module:index.html
- module:dev/dev-defined.js
- module:js/main-loadfiles.js
- module:js/module-datacheck.js
- module:lang/module-lang.js
- module:lang/main-core.js
Members
-
static,constantmodule:module_datatable.columnsObject
module-datatable -
Contains the columns in the table from module:g.medical_headerlist.
Requires:
Defined in module:module_datatable.setup. -
static,constantmodule:module_datatable.datatableObject
module-datatable -
Contains the actual datatable object (definition parsed in layout).
Requires:
Defined in module:module_datatable.display. -
static,constantmodule:module_datatable.definitionObject
module-datatable -
Contains the datatable definition.
Requires:- module:module_lang.text
- module:module_lang.current
- module:g.viz_definition
- module:module_datatable.columns
Defined in module:module_datatable.setup.
Methods
-
staticmodule:module_datatable.display()
module-datatable -
Sets up the layout for the datatable.
Requires:- Container id='container-table' in index.html
- module:g.medical_keylist
- module:module_lang.text
- module:module_lang.current
Triggered in module:main_core~chartBuilder. -
staticmodule:module_datatable.interaction()
module-datatable -
Sets up the option to show/hide the datatable (saves ressources when hidden and refreshing is disabled).
Requires:- Container id='container-table' in index.html
- Container id='more-table' in index.html
- module:module_lang.text
- module:module_lang.current
- module:module_datatable.refreshTable
Triggered in module:main_core~chartBuilder. -
staticmodule:module_datatable.refreshTable()
module-datatable -
Actualises the datatable when not hidden (saves ressources to hide it).
Requires:- Container id='container-table' in index.html
- module:module_datatable.datatable
- module:g.viz_definition
Triggered in module:main_core~onFiltered. -
staticmodule:module_datatable.setup()
module-datatable -
Defines the columns in the table from module:g.medical_headerlist and sets up the datatable definition object module:module_datatable.definition.
Requires:- module:g.medical_keylist
- module:g.medical_headerlist
- module:module_lang.text
- module:module_lang.current
- module:g.viz_definition
- module:module_datatable.columns
Triggered in module:main_core~chartBuilder.