diff --git a/imports/ui/GridTable.svelte b/imports/ui/GridTable.svelte index 35dce48..df2b9e4 100644 --- a/imports/ui/GridTable.svelte +++ b/imports/ui/GridTable.svelte @@ -4,6 +4,7 @@ export let rowKey; //Must only be null/undefined if the row is a new object (not associated with a row in the table). Should not change. export let edited; export let actions; + export let selection; //TODO: allow multiple selections? Make selections optional? // Setup a width for each column. columns.forEach(column => { @@ -104,27 +105,6 @@ } } } - /* - const editRow = (e, row) => { - let element = e.target; - while(element && element.nodeName !== "TR") element = element.parentNode; - let editor = element.querySelector('.editor'); - - isNew = false; - // Save the edited row so the editor has access to it. - $edited = row; - - if(editor) { - editor.appendChild(editorContainer); - } - editorContainer.classList.remove('hidden'); - } - const newRow = () => { - isNew = true; - newEditor.appendChild(editorContainer); - editorContainer.classList.remove('hidden'); - } - */
@@ -146,8 +126,6 @@ {#each $rows as row (rowKey(row))} - -