Releases: snappdevelopment/JsonTree
Releases · snappdevelopment/JsonTree
v2.2.0
New:
- Added a new parameter
expandSingleChildren
, which will automatically expand every child item that has no siblings until there are no children or multiple children. Similar to how some IDEs expand file trees when there is only one folder per level until there are none or multiple. The parameter defaults tofalse
.
Bug fix:
- Fixed the indent of the root elements end bracket to align it with the opening bracket
Other:
- Dependency updates
v2.1.1
- Performance improvements
- Dependency updates
v2.1.0
New:
- Adds a new parameter
contentPadding
which is applied to the internalLazyColumn
. Defaults toPaddingValues(0.dp)
.
Behaviour change:
- The
onLoading
Composable is not affected by themodifier
parameter anymore. This avoids unexpected behavior in cases where the modifiers on JsonTree are not compatible with the modifiers used in the loading Composable and gives more flexibility for the loading UI.
v2.0.0
New:
- JsonTree got almost fully re-implemented with a different approach for better performance. While the first version was based on recursive rendering of Composables, the new version manages the json tree in a list and renders it in a LazyColumn
- New parameter
onLoading
onJsonTree
for a Composable which is rendered during initial loading - New parameter
showIndices
onJsonTree
, which shows the index in front of each array element. Defaults to false. - New parameter
showItemCount
onJsonTree
, which shows the amount of items in arrays and objects. Defaults to true. - New parameter
indexColor
onTreeColors
for the newly added array indices
Breaking changes:
- The new version uses a LazyColumn, which should not be placed in a another scrollable container
- If you are using a custom instance of
TreeColors
, then you need to add a value for the newindexColor
- Add the new parameter
onLoading
toJsonTree
, which renders the given Composable during the initial loading - Compile SDK 34
- JDK 17
v2.0.0-SNAPSHOT
New:
- JsonTree got almost fully re-implemented with a different approach for better performance. While the first version was based on recursive rendering of Composables, the new version manages the json tree in a list and renders it in a LazyColumn
- New parameter
onLoading
onJsonTree
for a Composable which is rendered during initial loading - New parameter
showIndices
on JsonTree, which shows the index in front of each array element. Defaults to false. - New parameter
indexColor
onTreeColors
for the newly added array indices
Breaking changes:
- The new version uses a
LazyColumn
, which should not be placed in a another scrollable container - If you are using a custom instance of
TreeColors
, then you need to add a value for the newindexColor
- Add the new parameter
onLoading
toJsonTree
, which renders the given Composable during the initial loading - Compile SDK 34
- JDK 17
v1.0.1
Version 1.0.1
v1.0.0
Version 1.0.0