tab toolbar POC

This commit is contained in:
Jan Prochazka
2022-02-12 11:53:28 +01:00
parent 50984cae89
commit b459ee250c
7 changed files with 152 additions and 14 deletions

View File

@@ -54,6 +54,8 @@
import { setContext } from 'svelte';
import { apiCall } from '../utility/api';
import { getLocalStorage, setLocalStorage, setLocalStorage } from '../utility/storageCache';
import TabToolbarContainer from '../widgets/TabToolbarContainer.svelte';
import ToolbarCommandButton from '../widgets/ToolbarCommandButton.svelte';
export let tabid;
export let conid;
@@ -116,17 +118,25 @@
$: setLocalStorage('dataGrid_collapsedLeftColumn', $collapsedLeftColumnStore);
</script>
<TableDataGrid
{...$$props}
config={$config}
setConfig={config.update}
cache={$cache}
setCache={cache.update}
changeSetState={$changeSetStore}
focusOnVisible
{changeSetStore}
{dispatchChangeSet}
/>
<TabToolbarContainer>
<TableDataGrid
{...$$props}
config={$config}
setConfig={config.update}
cache={$cache}
setCache={cache.update}
changeSetState={$changeSetStore}
focusOnVisible
{changeSetStore}
{dispatchChangeSet}
/>
<svelte:fragment slot="toolbar">
<ToolbarCommandButton command="dataGrid.refresh" />
<ToolbarCommandButton command="tableData.save" />
<ToolbarCommandButton command="dataGrid.insertNewRow" />
</svelte:fragment>
</TabToolbarContainer>
<StatusBarTabItem
text="Open structure"