-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Atanas Atanasov
committed
Apr 30, 2018
1 parent
0bb475a
commit f4c4d78
Showing
8 changed files
with
135 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Example</title> | ||
<script src="../../dist/libraries/jquery/jquery.js"></script> | ||
<script src="../../dist/modular/js/core.js" type="text/javascript"></script> | ||
<link href="../../dist/modular/css/core.css" rel="stylesheet" type="text/css"> | ||
<link href="../../dist/modular/css/tree.css" rel="stylesheet" type="text/css"> | ||
<script src="../../dist/modular/js/tree.js"></script> | ||
</head> | ||
<body style="padding: 8px;"> | ||
Location: <div id="location" style="display: inline-block;"></div> | ||
<div id="tree"></div> | ||
<script> | ||
var tree = $('#tree').tree({ | ||
dataSource: '/Locations/Get', | ||
select: function (e, node, id) { | ||
var parents = tree.parents(id); | ||
$('#location').text(parents.join(' / ') + ' / ' + tree.getDataById(id).text); | ||
} | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters