const [treeViewFields, settreeViewData] = useState();
useEffect(() => {
var data=[
{
id: "39f156f5bebc978695cceafd73998663",
type: "Application",
spriteCssClass: "folder",
expanded: true,
text: "ApplicationNew",
contextMenu: true,
isMain: true,
child: [
{
id: "39f157dd2293741dd9d3d34122f22ab1",
type: "Module",
text: "Account",
expanded: false,
spriteCssClass: "folder",
contextMenu: true,
isMain: false,
allowAPI: false,
isCodeGenerated: false,
},
{
id: "39f156f63683cbe9bd3d27011400cfa1",
type: "Module",
text: "Organization",
expanded: false,
spriteCssClass: "folder",
contextMenu: true,
isMain: false,
allowAPI: false,
isCodeGenerated: false,
}]
}]
var fields = {
dataSource: data,
id: "id",
text: "text",
hasChildren: "hasChild"
}
settreeViewData(fields);
}, []);
|