Get current object path with custom button
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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?
- Ngôn ngữ chính
- TypeScript
- Star
- 420
- Fork
- 24
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của uiwjs/react-json-view
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
uiwjs/react-json-view#92 · 3 bình luận ·
-
Alpha Release Reliable?Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
uiwjs/react-json-view#93 ·
-
Named exportĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
uiwjs/react-json-view#90 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 52/100
uiwjs/react-json-view#89 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
uiwjs/react-json-view#88 · 1 reaction ·
Tất cả issue của uiwjs/react-json-view
Issue tương tự
-
Add: Digi World (Romania) SDĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Fission-AI/OpenSpec#1986 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nestjs/docs.nestjs.com#3554 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
publicodes/publicodes#868 ·
-
namespace operations
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
EclipseFdn/open-vsx.org#13488 ·
Maintainer thường phản hồi trong vòng 2 ngày