mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented quick tag editing in library list
This commit is contained in:
1 parent
aad1ec5bc0
commit
c98b621f05
4 files changed
+191
-35
No files matched your search
@@ -48,6 +48,7 @@ interface Props {
|
||||
selection?: Selection
|
||||
onRowContextMenu?: (track: Track, x: number, y: number) => void
|
||||
onPlay?: (track: Track) => void
|
||||
onEditField?: (track: Track, field: keyof Track, value: string | number) => void
|
||||
activeTrackId?: string | null
|
||||
}
|
||||
|
||||
@@ -106,12 +107,14 @@ export function TrackTable({
|
||||
selection,
|
||||
onRowContextMenu,
|
||||
onPlay,
|
||||
onEditField,
|
||||
activeTrackId,
|
||||
}: Props) {
|
||||
const table = useReactTable({
|
||||
data: tracks,
|
||||
columns: TRACK_COLUMNS,
|
||||
state: { sorting, columnVisibility, columnOrder, columnSizing },
|
||||
meta: { onEditField },
|
||||
onSortingChange: (updater) =>
|
||||
onSortingChange(typeof updater === 'function' ? updater(sorting) : updater),
|
||||
onColumnSizingChange: (updater) =>
|
||||
|
||||
Reference in new issue
Block a user