2023-07-03 12:51:23 -04:00
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Home Page";
|
|
|
|
}
|
2024-04-05 23:07:48 -04:00
|
|
|
<div id="tree"></div>
|
2024-05-26 19:43:17 -04:00
|
|
|
tree above.
|
2024-05-05 16:55:00 -04:00
|
|
|
|
|
|
|
@section Scripts{
|
2024-05-26 19:43:17 -04:00
|
|
|
<script type="text/javascript">
|
|
|
|
function getTree() {
|
|
|
|
var tree = @Html.Raw(ViewData["treeString"]);
|
2024-06-10 16:24:30 -04:00
|
|
|
console.log(tree);
|
2024-05-26 19:43:17 -04:00
|
|
|
return tree;
|
2024-05-05 16:55:00 -04:00
|
|
|
}
|
|
|
|
|
2024-05-26 19:43:17 -04:00
|
|
|
$('#tree').bstreeview({ data: getTree() });
|
|
|
|
</script>
|
2024-05-05 16:55:00 -04:00
|
|
|
}
|