declarative-lookup-rollup-summaries
declarative-lookup-rollup-summaries copied to clipboard
LWC Wizard: Manage Rollups Datatable should have header-filtering for some columns
Is your feature request related to a problem? Please describe. The Manage Rollups datatable should allow users to filter rows on the columns with a few possible values; Active, Calc Mode, and Rollup Type. The relatively small possible values here makes them ideal for filtering.
Describe the solution you'd like
The manageRollups
LWC configures the datatable. It will need filtering added to those column configurations via custom actions.
Additional context Use the
Creating Header Actions
sections of
https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/documentation
They have an example of adding filtering using custom header actions, you can set a variable on the LWC and leverage it as part of the calcRollupList
function of the class. You would receive the header action, apply it to the held component variables, and invoke calcRollupList
which would respect the applied filtering.