Skip to content

Releases: dmackdev/egui_json_tree

v0.8.0

28 Oct 19:27
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.1...v0.8.0

🧳 Migration

  • Colour fields have been moved within JsonTreeStyle into a Option<JsonTreeVisuals> field.
  • abbreviate_root and toggle_buttons_state fields have been moved into JsonTreeStyle. There are no longer corresponding builder methods on JsonTree.
  • Set the JsonTreeStyle::visuals field to use a desired colour scheme. Otherwise a default dark or light theme will be used based on the egui::Visuals::dark_mode field.

⭐ Added

  • Builder methods to JsonTreeStyle for more fluent construction.

v0.7.1 - Toggle Button Customisation

06 Oct 12:49
Compare
Choose a tag to compare

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

02 Oct 17:34
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.7.0

v0.6.0 - New render hook for improved rendering customisation

07 Jul 16:04
Compare
Choose a tag to compare

✨ Highlights

  • New JsonTree::on_render and JsonTree::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 the JsonTree 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 to 0.28.
  • Update MSRV to 1.76.
  • Replace JsonTree::response_callback with JsonTree::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.