expanded cell view

This commit is contained in:
SPRINX0\prochazka
2025-02-07 14:34:56 +01:00
parent 8103c26ca8
commit 93895f3d6f
4 changed files with 17 additions and 5 deletions

View File

@@ -5,6 +5,7 @@
export let selection;
export let showWholeRow = false;
export let expandAll = false;
let json = null;
let error = null;
@@ -31,7 +32,7 @@
{:else}
<div class="outer">
<div class="inner">
<JSONTree value={json} expanded />
<JSONTree value={json} {expandAll} expanded />
</div>
</div>
{/if}

View File

@@ -0,0 +1,6 @@
<script lang="ts">
import JsonCellView from './JsonCellView.svelte';
export let selection;
</script>
<JsonCellView {selection} expandAll />

View File

@@ -20,6 +20,12 @@
component: JsonCellView,
single: true,
},
{
type: 'jsonExpanded',
title: 'Json - expanded',
component: JsonExpandedCellView,
single: true,
},
{
type: 'jsonRow',
title: 'Json - Row',
@@ -84,6 +90,7 @@
import SelectField from '../forms/SelectField.svelte';
import { selectedCellsCallback } from '../stores';
import WidgetTitle from './WidgetTitle.svelte';
import JsonExpandedCellView from '../celldata/JsonExpandedCellView.svelte';
let selectedFormatType = 'autodetect';