mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 00:04:10 +00:00
add multiple indice selections
This commit is contained in:
@@ -389,10 +389,19 @@
|
||||
e.api.deselectAll()
|
||||
outputs?.selectedRow?.set({})
|
||||
outputs?.selectedRowIndex.set(0)
|
||||
} else if (Array.isArray(index)) {
|
||||
// select all rows matching the indixes
|
||||
e.api.deselectAll()
|
||||
index.forEach((i) => {
|
||||
let rowId = getIdFromData(value[i])
|
||||
if (rowId) {
|
||||
e.api.getRowNode(rowId)?.setSelected(true, false)
|
||||
}
|
||||
})
|
||||
} else if (typeof index === 'number') {
|
||||
let rowId = getIdFromData(value[index])
|
||||
if (rowId) {
|
||||
e.api.getRowNode(rowId)?.setSelected(true)
|
||||
e.api.getRowNode(rowId)?.setSelected(true, true)
|
||||
outputs?.selectedRowIndex.set(index)
|
||||
const row = { ...value[index] }
|
||||
delete row['__index']
|
||||
|
||||
Reference in New Issue
Block a user