namespaced batarang's directives

test-unit-sauce
Brian Ford 12 years ago
parent ed0a3f3aa6
commit 8e0f1b0201

@ -1,6 +1,6 @@
// D3 visualization // D3 visualization
// TODO: D3 as a service // TODO: D3 as a service
panelApp.directive('d3', function($compile, d3) { panelApp.directive('batD3', function (d3) {
return { return {
restrict: 'E', restrict: 'E',
terminal: true, terminal: true,

@ -1,5 +1,5 @@
// model tree // model tree
panelApp.directive('mtree', function($compile) { panelApp.directive('batMtree', function($compile) {
return { return {
restrict: 'E', restrict: 'E',
terminal: true, terminal: true,

@ -1,5 +1,5 @@
// range slider // range slider
panelApp.directive('slider', function($compile) { panelApp.directive('batSlider', function($compile) {
return { return {
restrict: 'E', restrict: 'E',
terminal: true, terminal: true,

@ -1,5 +1,5 @@
// watchers tree // watchers tree
panelApp.directive('wtree', function($compile) { panelApp.directive('batWtree', function($compile) {
return { return {
restrict: 'E', restrict: 'E',
terminal: true, terminal: true,

@ -56,7 +56,7 @@
<label for="select-root">Root <select id="select-root" ng-options="p.value as p.label for p in roots" ng-model="selectedRoot"></select></label> <label for="select-root">Root <select id="select-root" ng-options="p.value as p.label for p in roots" ng-model="selectedRoot"></select></label>
</div> </div>
<pre> <pre>
<mtree val="trees[selectedRoot]" inspect="inspect" edit="edit"></mtree> <bat-mtree val="trees[selectedRoot]" inspect="inspect" edit="edit"></mtree>
</pre> </pre>
</div> </div>
@ -77,7 +77,7 @@
<div class="span6"> <div class="span6">
<h3>Watch Tree</h3> <h3>Watch Tree</h3>
<div class="well well-top" style="height: 400px; overflow-y: auto;"> <div class="well well-top" style="height: 400px; overflow-y: auto;">
<wtree val="trees[selectedRoot]" inspect="inspect"></wtree> <bat-wtree val="trees[selectedRoot]" inspect="inspect"></wtree>
</div> </div>
<div class="well well-bottom"> <div class="well well-bottom">
<label for="select-root" ng-class="{hidden: roots.length <= 1}">Root <label for="select-root" ng-class="{hidden: roots.length <= 1}">Root
@ -111,7 +111,7 @@
<div class="well well-bottom"> <div class="well well-bottom">
<form class="form-inline"> <form class="form-inline">
<label>Filter expressions</label> <label>Filter expressions</label>
<slider minimum="min" maximum="max"></slider> <bat-slider minimum="min" maximum="max"></slider>
</form> </form>
<button class="btn btn-success" ng-click="exportData()"><i class="icon-download-alt icon-white"></i> Save Data as JSON</button> <button class="btn btn-success" ng-click="exportData()"><i class="icon-download-alt icon-white"></i> Save Data as JSON</button>
<button class="btn btn-danger" ng-click="clearHistogram()">Clear Data</button> <button class="btn btn-danger" ng-click="clearHistogram()">Clear Data</button>