Always set table ID
authorThierry Florac <thierry.florac@onf.fr>
Thu, 14 Jun 2018 08:58:56 +0200
changeset 344 f1dc3da37393
parent 343 bff947c6b227
child 345 fd8621930779
Always set table ID
src/pyams_skin/table.py
--- a/src/pyams_skin/table.py	Wed Jun 13 15:34:27 2018 +0200
+++ b/src/pyams_skin/table.py	Thu Jun 14 08:58:56 2018 +0200
@@ -94,6 +94,9 @@
     @property
     def data_attributes(self):
         return {
+            'table': {
+                'id': self.id,
+            },
             'tr': {
                 'id': lambda x, col: self.get_element_id(x),
                 'data-ams-element-name': lambda x, col: get_element_name(x),