-
Notifications
You must be signed in to change notification settings - Fork 220
Closed
Labels
Description
I tried this sample without extend component. So i need to get onchecked event using const value like below. I am new to react But my requirement to not use extend component.
const stateLod = {
checked: [],
expanded: [],
data : [],
setDataLoad:null
}
<CheckboxTree
nodes={listItems}
iconsClass="fa5"
checked={stateLod.checked}
data={classData}
onCheck={(checked) =>
stateLod.checked={checked}
}
/>
Do you any suggestion for this issue,
also I tried this way.
function setCheckedNodes(checked){
return true;
}
<CheckboxTree
nodes={listItems}
iconsClass="fa5"
checked={stateLod.checked}
data={classData}
onCheck={(checked) => setCheckedNodes(checked)}
}
/>