You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vegegoku
changed the title
v2: SummeryPlugin -> SummaryRow gets not cleared
SummeryPlugin SummaryRow is not being cleared and is duplicated instead
Oct 29, 2023
Using the SummaryPlugin on a DataTable, you got something like that:
Now, calling
setData()
again, will create a new SummayRow, but does not delete the old one:Changing:
private List<TableRow<T>> summaryRows = new ArrayList<>();
to
private List<SummaryRow<T, S>> summaryRows = new ArrayList<>();
and adding:
inside the loop of the
setSummaryRecords
-method will solve the issue.The text was updated successfully, but these errors were encountered: