Hello, I am trying to customize each node in the Kendo UI React Treeview. So far my code looks like this:
<TreeView
className={"margin-top-15"}
data={processTreeViewItems(contextualWorkspaceGroups, {
//select: selectedLayer,
//check: check,
//expand: expandedWorkspace,
})}
focusIdField={"id"}
draggable={false}
expandIcons={false}
item={customContextualLegendItemRenderer}
onExpandChange={onLayerExpansionChanged}
aria-multiselectable={true}
onItemClick={OnLayerItemSelected}
checkboxes={true}
onCheckChange={onLayerVisibilityChanged}
/>
</div>
where the item template is defined as follows:
const customContextualLegendItemRenderer = ( props : any ) => {
return (
<div className={'contextualLegendItem'}>
<SvgIcon className={"contextualLegendItemTypeIcon"} icon={aggregateFieldsIcon}/>
<span className={"contextualLegendItemTypeText"}>{"Workflow"}</span>
<span className={"contextualLegendItemText"}>{props.item.text}</span>
<Label className={"contextualLegendItemStatusLabel"}>{props.item.status}</Label>
</div>
);
};
That seems to work, but I also need to control the checkbox's location and style. How do I do this?