Control the expansion of individual nodes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
Start at the JsonView component and trace how the existing collapsed attribute determines node state. Define how the proposed shouldExpandNodeInitially keyPath callback fits that flow, then verify that individual nodes can receive their initial expanded or collapsed state without changing the existing whole-tree behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello. I found this library for json data display, but i do not see a way how to calculate the initial expansion and collapse state of each individual node. Ideally, there could be a function that can be implemented and passed to the JsonView component called:
shouldExpandNodeInitially={(
keyPath: (string | number)[], // denotes the keypath of the current node in the json structure
): boolean => {}
if the result is true - node should be expanded
if the result is false - node should be collapsed
This way the initial expansion could be calculated for each node separately and it would be possible to decide for each node if it should be opened or not. The current attribute 'collapsed' lets me control the collapsion state of the whole tree, which does not seem to allow to configure each node separately and limits my needs.
Any idea on how this issue could be solved?
- Lingua principale
- TypeScript
- Stelle
- 421
- Fork
- 24
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di uiwjs/react-json-view
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
uiwjs/react-json-view#92 · 3 commenti ·
-
Alpha Release Reliable?Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
uiwjs/react-json-view#93 ·
-
Named exportAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
uiwjs/react-json-view#90 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 52/100
uiwjs/react-json-view#89 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
uiwjs/react-json-view#88 · 1 reazione ·
Tutte le issue di uiwjs/react-json-view
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
openclaw/openclaw#168089 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
✨ enhancement needs-discussion
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
[Bug]: [MCP/CLI] Bare loopback IP addresses (127.0.0.1:port) and hosts with ports fail to navigate due to erroneous scheme inferenceForse già presa @alok-108 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/playwright#43263 ·
I maintainer di solito rispondono entro 1 giorno
-
area:studio type:security
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno