here fig I want to view file's attributes (size,created,modified) on hover over the file name. plz tell me how to do?
this how my tree view code.
const dataWithAttribute = {
name: 'secret crypto file',
size: '123', // wew can provide any custom data to the FolderTree!
created: '12-10-2020'
modified: '21-11-2020'
// ...
};
const onNameClick = ({ defaultOnClick, nodeData }) => {
defaultOnClick();
const {
// internal data
path, name, checked, isOpen,
// custom data
size,created,modified
} = nodeData;
};
return (
<FolderTree data={ dataWithUrl } onNameClick={ onNameClick }
/>
); '''