Get current object path with custom button
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 with the JsonView.Copied component renderer and compare it with the other available component renderers to determine where the current object path could be exposed. The work is done when a custom button can retrieve the path for both nested properties such as data.foo and object rows such as data.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I'm trying to add a button next to the copy button which would get me the current object path. For example, if I have the object
{
"id": "1",
"data": {
"foo": "bar"
}
}
and I clicked the button on the "foo": "bar" row, I want to return "data.foo". Similarly, if I clicked the button on the "data": { row, I want to return "data".
Here's an image with the button for reference (fake data)
My first attempt was using the JsonView.Copied component renderer to just throw the button next to the copy button, but I don't have access to the current path in the object there. The renderer only knows the key and value of the row. I don't see how I would achieve what I want with the other available component renderers either.
Is there a method with the current functionality? If not, would it be possible to add support for this use-case?
- Lingua principale
- TypeScript
- Stelle
- 421
- Fork
- 26
- Merge medio
- 56m
- PR unite (30g)
- 1
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
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
juice-shop/juice-shop#3686 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
dsh-market/dsh-market#877 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
ScottKirvan/GOMAC#61 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
stellar/stellar-dev-skill#151 ·
I maintainer di solito rispondono entro 1 giorno