Show title on expand button

This commit is contained in:
josdejong 2020-06-02 22:38:46 +02:00
parent 2a885ac5ef
commit 3ea589a126
1 changed files with 10 additions and 2 deletions

View File

@ -183,7 +183,11 @@
<div class='json-node'> <div class='json-node'>
{#if type === 'array'} {#if type === 'array'}
<div class='header'> <div class='header'>
<button class='expand' on:click={toggleExpand}> <button
class='expand'
on:click={toggleExpand}
title='Expand or collapse this array (Ctrl+Click to expand/collapse recursively)'
>
{#if expanded} {#if expanded}
<Icon data={faCaretDown} /> <Icon data={faCaretDown} />
{:else} {:else}
@ -236,7 +240,11 @@
{/if} {/if}
{:else if type === 'object'} {:else if type === 'object'}
<div class='header'> <div class='header'>
<button class='expand' on:click={toggleExpand}> <button
class='expand'
on:click={toggleExpand}
title='Expand or collapse this object (Ctrl+Click to expand/collapse recursively)'
>
{#if expanded} {#if expanded}
<Icon data={faCaretDown} /> <Icon data={faCaretDown} />
{:else} {:else}