Refactor `JsonTreeStyle`
Closed this issue · 0 comments
dmackdev commented
Some small refactors to improve the JsonTreeStyle customisation API.
- Move
abbreviate_rootintoJsonTreeStyle, - Move
toggle_buttons_stateintoJsonTreeStyle, - Add builder methods to
JsonTreeStylefor 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.