Skip to content

Refactor JsonTreeStyle #33

Closed
Closed
@dmackdev

Description

@dmackdev

Some small refactors to improve the JsonTreeStyle customisation API.

  • Move abbreviate_root into JsonTreeStyle,
  • Move toggle_buttons_state into JsonTreeStyle,
  • Add builder methods to JsonTreeStyle for more fluent construction.

I think default_expand can remain where it is (set by a builder method on JsonTree) since it pertains to the behaviour of the tree rather than its appearance.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions