vassago/WebInterface/Views/Home/Index.cshtml

17 lines
371 B
Plaintext
Raw Normal View History

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