This repository has been archived on 2023-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
discord-bot-shtik/WebInterface/Views/Home/Index.cshtml

17 lines
371 B
Plaintext

@{
ViewData["Title"] = "Home Page";
}
<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>
}