Releases: dmackdev/egui_json_tree
Releases · dmackdev/egui_json_tree
v0.8.0
What's Changed
- add web target for demo and deploy to gh pages by @dmackdev in #26
- Automatic dark/light theming by @dmackdev in #30
- Make sidebar collapsible for demo by @dmackdev in #31
- Refactor
JsonTreeStyle
by @dmackdev in #34
Full Changelog: v0.7.1...v0.8.0
🧳 Migration
- Colour fields have been moved within
JsonTreeStyle
into aOption<JsonTreeVisuals>
field. abbreviate_root
andtoggle_buttons_state
fields have been moved intoJsonTreeStyle
. There are no longer corresponding builder methods onJsonTree
.- Set the
JsonTreeStyle::visuals
field to use a desired colour scheme. Otherwise a default dark or light theme will be used based on theegui::Visuals::dark_mode
field.
⭐ Added
- Builder methods to
JsonTreeStyle
for more fluent construction.
v0.7.1 - Toggle Button Customisation
What's Changed
New Feature: Toggle Button Customisation
Adds support to control visibility/interactivity of toggle buttons via 3 states: visible and enabled, visible and disabled, and hidden.
Configure the JsonTree
via the new builder method toggle_buttons_state
as follows:
JsonTree::new("id", &value)
.toggle_buttons_state(ToggleButtonsState::VisibleDisabled)
.show(ui);
Screen.Recording.2024-10-05.at.15.45.20.mov
Full Changelog: v0.7.0...v0.7.1
v0.7.0 - Update to `egui` 0.29
v0.6.0 - New render hook for improved rendering customisation
✨ Highlights
- New
JsonTree::on_render
andJsonTree::on_render_if
hooks provide more granular rendering customisation of the tree via a user-defined closure. This also provides access to the actual JSON value involved in the render event, in its original type as passed to theJsonTree
constructor. - Added new JSON Editor UI demo to exemplify
JsonTree::on_render
usage.
Screen.Recording.2024-06-22.at.19.43.19.mov
🧳 Migration
- Update
egui
to0.28
. - Update MSRV to
1.76
. - Replace
JsonTree::response_callback
withJsonTree::on_render
. See Copy to Clipboard demo for updated code.
⭐ Added
- Add
JsonPointerSegment
enum for array indices/object keys. - Add
JsonPointer
for JSON pointer utilities.