add isExpanded as argument to getItemString method

This commit is contained in:
lucataglia 2023-05-22 17:24:35 +02:00
parent 63b691a264
commit becb83393f
2 changed files with 4 additions and 2 deletions

View File

@ -176,7 +176,8 @@ export default function JSONNestedNode(props: Props) {
data,
itemType,
createItemString(data, collectionLimit),
keyPath
keyPath,
expandedRef.current,
);
const stylingArgs = [
keyPath,

View File

@ -10,7 +10,8 @@ export type GetItemString = (
data: unknown,
itemType: React.ReactNode,
itemString: string,
keyPath: KeyPath
keyPath: KeyPath,
isExpanded: boolean,
) => React.ReactNode;
export type LabelRenderer = (