English
list.toggleData.after
About 96 wordsLess than 1 minute
2025-12-16
Triggered after the selected state of list items changes. It can be used to execute custom logic when selection state changes.
Parameters
| Parameter | Description | Type |
|---|---|---|
| selectedData | The currently selected data list. Each item contains the full object data | Array |
Return Value
This is a synchronous event and does not require a return value.
Code Example
Listen for selection changes
{
event: "list.toggleData.after",
functional: function (pluginExecResult, options) {
const { selectedData } = options;
console.log('Currently selected data:', selectedData);
const total = selectedData.reduce((sum, item) => sum + (item.amount || 0), 0);
console.log('Total amount of selected data:', total);
}
}