diff --git "a/m\303\251li-m\303\251lo/2024-10-datatable-utilities/datatable-utilities-doc-en.html" "b/m\303\251li-m\303\251lo/2024-10-datatable-utilities/datatable-utilities-doc-en.html" new file mode 100644 index 000000000..b683fa9a3 --- /dev/null +++ "b/m\303\251li-m\303\251lo/2024-10-datatable-utilities/datatable-utilities-doc-en.html" @@ -0,0 +1,95 @@ +--- +title: DataTable Utilities - Documentation +language: en +description: Utility to Manipulate JSON Data. +tag: DataTable +altLangPage: datatable-utilities-doc-fr.html +dateModified: 2024-11-01 +--- + +
+ +Document the public configuration options that can be used by implementers or developers.
+Enable the plugin for the Target Table by adding wb-tables-utility to the <table> element <table class="table wb-tables wb-tables-utility"> data-wb-tables-utility="{...}"
Option | +Description | +How to configure | +Values | +
---|---|---|---|
debug | +Print Debug messages to the console | +data-wb-tables-utility="{"debug":true}" |
+
+
|
+
filteredsum | +Column Totals to reflect Filtered DataTable Data | +data-wb-tables-utility="{"filteredsum":false}" |
+
+
|
+
wb-col-sum | +When applied to a column, a column footer total is calcualted | +"columnDefs": [{ "className": "wb-col-sum", "targets": [3]}] |
+ + wb-col-sum + | +
wb-col-money | +When this class is applied to a column, the data is manipulated to reflect currency with $ | +"columnDefs": [{ "className": "wb-col-money", "targets": [3]}] |
+ + wb-col-money + | +
wb-col-cur-thousand | +When this class is applied to a column, the data is manipulated to reflect currency without $ | +"columnDefs": [{ "className": "wb-col-cur-thousand", "targets": [3]}] |
+ + wb-col-cur-thousand + | +
wb-col-mailto | +When this class is applied to a column, the data is searched with an email partern, and when found are wrapped with <a href="mailto:...">...</a> to make it a clikcable link. | +"columnDefs": [{ "className": "wb-col-mailto", "targets": [3]}] |
+ + wb-col-mailto + | +
wb-col-url | +When this class is applied to a column, dataTable Utilites looks for a second column with the same name as this column that is ending with -url + and the 2 are stiched into a single column wrapped with <a href="column-name-url">column-name</a> to make it a clikcable link. | +"columnDefs": [{ "className": "wb-col-url", "targets": [3]}] |
+ + wb-col-url + | +
Document the public configuration options that can be used by implementers or developers.
+ +Enable the plugin for the Target Table by adding wb-tables-utility to the <table> element <table class="table wb-tables wb-tables-utility"> data-wb-tables-utility="{...}"
Option | +Description | +How to configure | +Values | +
---|---|---|---|
debug | +Print Debug messages to the console | +data-wb-tables-utility="{"debug":true}" |
+
+
|
+
filteredsum | +Column Totals to reflect Filtered DataTable Data | +data-wb-tables-utility="{"filteredsum":false}" |
+
+
|
+
wb-col-sum | +When applied to a column, a column footer total is calcualted | +"columnDefs": [{ "className": "wb-col-sum", "targets": [3]}] |
+ + wb-col-sum + | +
wb-col-money | +When this class is applied to a column, the data is manipulated to reflect currency with $ | +"columnDefs": [{ "className": "wb-col-money", "targets": [3]}] |
+ + wb-col-money + | +
wb-col-cur-thousand | +When this class is applied to a column, the data is manipulated to reflect currency without $ | +"columnDefs": [{ "className": "wb-col-cur-thousand", "targets": [3]}] |
+ + wb-col-cur-thousand + | +
wb-col-mailto | +When this class is applied to a column, the data is searched with an email partern, and when found are wrapped with <a href="mailto:...">...</a> to make it a clikcable link. | +"columnDefs": [{ "className": "wb-col-mailto", "targets": [3]}] |
+ + wb-col-mailto + | +
wb-col-url | +When this class is applied to a column, dataTable Utilites looks for a second column with the same name as this column that is ending with -url + and the 2 are stiched into a single column wrapped with <a href="column-name-url">column-name</a> to make it a clikcable link. | +"columnDefs": [{ "className": "wb-col-url", "targets": [3]}] |
+ + wb-col-url + | +
Sponsor: PSPC - {{ implPlan.sponsor }}
-Department | +Contact Email | +Custom study | +Reg# | +Contract value | +
---|
.wb-col-sum
class on the column to perform column Total
Add a Placehoder <tfoot> at the bottom of the Table.
@@ -135,7 +200,7 @@Pass false
via filteredsum to the plugin data-wb-tables-utility="{"filteredsum":false}"
as the default is true
- <table class="wb-tables table table-striped table-hover table-condensed small wb-tables-utility" id="t3" + <table class="wb-tables table table-striped table-hover table-condensed small wb-tables-utility" id="t4" data-wb-tables-utility="{"filteredsum":false}" data-wb-tables='{ "ajax":"data/datatable-utility.json", "columns": [{ "data": "DepartmentEN" }, @@ -152,7 +217,7 @@Code
.wb-col-sum
class on the column to perform column Total
Add a Placehoder <tfoot> at the bottom of the Table.
@@ -203,7 +268,7 @@- <table class="wb-tables table table-striped table-hover table-condensed small wb-tables-utility" id="t4" + <table class="wb-tables table table-striped table-hover table-condensed small wb-tables-utility" id="t5" data-wb-tables='{ "ajax":"data/datatable-utility.json", "columns": [{ "data": "DepartmentEN" }, { "data": "ContactEmail" }, @@ -219,7 +284,7 @@Code
Ministère | +Courriel | +Titre de l’étude multi-intérêts | +Reg# | +Valeur des contrats | +
---|
.wb-col-sum
classe sur la colonne pour effectuer le total de la colonne.
Ajouter un espace réservé <tfoot> en bas de la table.
@@ -136,7 +201,7 @@Définissez le paramètre filteredsum a « false
» dans le plugiciel data-wb-tables-utility="{\"filteredsum\":false}"
, car la valeur par défaut est « true
».
- <table class="wb-tables table table-striped table-hover table-condensed small wb-tables-utility" id="t3" + <table class="wb-tables table table-striped table-hover table-condensed small wb-tables-utility" id="t4" data-wb-tables-utility="{"filteredsum":false}" data-wb-tables='{ "ajax":"data/datatable-utility.json", "columns": [{ "data": "DepartmentFR" }, @@ -153,7 +218,7 @@Code
.wb-col-sum
classe sur la colonne pour effectuer le total de la colonne.
Ajouter un espace réservé <tfoot> en bas de la table.
@@ -204,7 +269,7 @@- <table class="wb-tables table table-striped table-hover table-condensed small wb-tables-utility" id="t4" + <table class="wb-tables table table-striped table-hover table-condensed small wb-tables-utility" id="t5" data-wb-tables='{ "ajax":"data/datatable-utility.json", "columns": [{ "data": "DepartmentFR" }, { "data": "ContactEmail" }, @@ -220,7 +285,7 @@Code