Move grid block provider top level since nesting doesn't matter
This commit is contained in:
parent
9a0f747c3e
commit
a5f627e320
1 changed files with 26 additions and 26 deletions
|
@ -145,35 +145,35 @@
|
||||||
|
|
||||||
<div use:styleable={styles} class:in-builder={$builderStore.inBuilder}>
|
<div use:styleable={styles} class:in-builder={$builderStore.inBuilder}>
|
||||||
<span style="--height:{height};">
|
<span style="--height:{height};">
|
||||||
<Provider {data} {actions}>
|
<Grid
|
||||||
<Grid
|
bind:this={grid}
|
||||||
bind:this={grid}
|
datasource={table}
|
||||||
datasource={table}
|
{API}
|
||||||
{API}
|
{stripeRows}
|
||||||
{stripeRows}
|
{quiet}
|
||||||
{quiet}
|
{initialFilter}
|
||||||
{initialFilter}
|
{initialSortColumn}
|
||||||
{initialSortColumn}
|
{initialSortOrder}
|
||||||
{initialSortOrder}
|
{fixedRowHeight}
|
||||||
{fixedRowHeight}
|
{columnWhitelist}
|
||||||
{columnWhitelist}
|
{schemaOverrides}
|
||||||
{schemaOverrides}
|
canAddRows={allowAddRows}
|
||||||
canAddRows={allowAddRows}
|
canEditRows={allowEditRows}
|
||||||
canEditRows={allowEditRows}
|
canDeleteRows={allowDeleteRows}
|
||||||
canDeleteRows={allowDeleteRows}
|
canEditColumns={false}
|
||||||
canEditColumns={false}
|
canExpandRows={false}
|
||||||
canExpandRows={false}
|
canSaveSchema={false}
|
||||||
canSaveSchema={false}
|
showControls={false}
|
||||||
showControls={false}
|
notifySuccess={notificationStore.actions.success}
|
||||||
notifySuccess={notificationStore.actions.success}
|
notifyError={notificationStore.actions.error}
|
||||||
notifyError={notificationStore.actions.error}
|
buttons={enrichedButtons}
|
||||||
buttons={enrichedButtons}
|
on:rowclick={e => onRowClick?.({ row: e.detail })}
|
||||||
on:rowclick={e => onRowClick?.({ row: e.detail })}
|
/>
|
||||||
/>
|
|
||||||
</Provider>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<Provider {data} {actions} />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
div {
|
div {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
Loading…
Reference in a new issue