table Element definition

Definition

The HTML <table> element represents tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.

Definition en français

L’élément HTML <table> permet de représenter un tableau de données, c’est-à-dire des informations exprimées sur un tableau en deux dimensions.

Javascript

 1 /**
 2  * Suppression d'une ligne lorsque le temps imputé === '00:00'
 3  *
 4  */
 5 function trt_temps_impute_0(value_temps_impute, element) {
 6     if (value_temps_impute === "00:00") {
 7         // https://gdevops.frama.io/web/linkertree/html/apis/element/element.html
 8         // https://gdevops.frama.io/web/linkertree/html/apis/element/table/table.html
 9         // https://gdevops.frama.io/web/linkertree/html/apis/HTMLTableElement/HTMLTableElement.html
10         const table = document.getElementById('id_list_table');
11         // https://gdevops.frama.io/web/linkertree/html/apis/node/properties/parentElement/parentElement.html
12         // https://gdevops.frama.io/web/linkertree/html/apis/element/tr/tr.html
13         const element_tr = element.parentElement.parentElement.parentElement;
14         // https://gdevops.frama.io/web/linkertree/html/apis/HTMLTableRowElement/properties/rowIndex/rowIndex.html
15         // https://gdevops.frama.io/web/linkertree/html/apis/HTMLTableElement/methods/deleteRow/deleteRow.html
16         table.deleteRow(element_tr.rowIndex);
17     }
18 }