-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 3.0.0
-
Component/s: UI
-
Tags:
The current form of the selected event in nuxeo-data-table does not account for multiple data tables being used in one layout. This can be covered by including the model in the event details, for example:
_onCheckBoxTap(e) { if (this.selectionEnabled) { this.$.list.toggleSelectionForIndex(e.model.index); const target = e.target || e.srcElement; target.dispatchEvent(new CustomEvent('selected', { composed: true, bubbles: true, detail: { index: e.model.index, shiftKey: e.shiftKey, model: e.model }, })); this._updateFlags(); } }