diff --git a/js/controllers.js b/js/controllers.js index f6ca8e3f845..ec54565f1fc 100644 --- a/js/controllers.js +++ b/js/controllers.js @@ -128,12 +128,12 @@ angular.module('kibana.controllers', []) $scope.row.panels.push(panel); }; - $scope.reset_panel = function() { - + $scope.reset_panel = function(type) { $scope.panel = { error : false, span : 3, - editable: true + editable: true, + type : type }; }; diff --git a/js/directives.js b/js/directives.js index 708ff5fa023..4dde7de11f2 100644 --- a/js/directives.js +++ b/js/directives.js @@ -23,13 +23,15 @@ angular.module('kibana.directives', []) .directive('addPanel', function($compile) { return { restrict: 'A', - link: function(scope, elem, attrs) { - scope.$watch('panel.type', function(n,o) { - if(!_.isUndefined(scope.panel.type)) { - var template = '
'+ + link: function($scope, elem, attrs) { + $scope.$watch('panel.type', function(n,o) { + var _type = $scope.panel.type; + $scope.reset_panel(_type); + if(!_.isUndefined($scope.panel.type)) { + var template = '
'+ ''+ '
'; - elem.html($compile(angular.element(template))(scope)); + elem.html($compile(angular.element(template))($scope)); } }); } diff --git a/panels/bettermap/editor.html b/panels/bettermap/editor.html index 5f89f49f295..99d7d121e20 100644 --- a/panels/bettermap/editor.html +++ b/panels/bettermap/editor.html @@ -15,14 +15,3 @@
-
Panel Spy
-
-
- -
-
- The panel spy shows 'behind the scenes' information about a panel. It can - be accessed by clicking the in the top right - of the panel. -
-
diff --git a/panels/histogram/editor.html b/panels/histogram/editor.html index 028e7687363..30be4aacbc7 100644 --- a/panels/histogram/editor.html +++ b/panels/histogram/editor.html @@ -1,4 +1,3 @@ -
@@ -60,15 +59,3 @@
-
Panel Spy
-
-
- -
-
- The panel spy shows 'behind the scenes' information about a panel. It can - be accessed by clicking the in the top right - of the panel. -
-
-
diff --git a/panels/hits/editor.html b/panels/hits/editor.html index ee68d06624b..d39b3ab0e8b 100644 --- a/panels/hits/editor.html +++ b/panels/hits/editor.html @@ -26,15 +26,4 @@ -
Panel Spy
-
-
- -
-
- The panel spy shows 'behind the scenes' information about a panel. It can - be accessed by clicking the in the top right - of the panel. -
-
diff --git a/panels/map/editor.html b/panels/map/editor.html index d20f7c4466d..f18b6962eaf 100644 --- a/panels/map/editor.html +++ b/panels/map/editor.html @@ -9,9 +9,3 @@ -
Panel Spy
-
-
- -
-
diff --git a/panels/pie/editor.html b/panels/pie/editor.html index d650cbdf80d..f1de354d177 100644 --- a/panels/pie/editor.html +++ b/panels/pie/editor.html @@ -1,4 +1,3 @@ -
@@ -47,16 +46,4 @@
-
-
Panel Spy
-
-
- -
-
- The panel spy shows 'behind the scenes' information about a panel. It can - be accessed by clicking the in the top right - of the panel. -
-
-
\ No newline at end of file +
\ No newline at end of file diff --git a/panels/table/editor.html b/panels/table/editor.html index d31ed8e912c..bf77984002a 100644 --- a/panels/table/editor.html +++ b/panels/table/editor.html @@ -1,7 +1,7 @@
-
Add field
+
Add Column
@@ -41,45 +41,8 @@
Font Size
-
-
Page Control
-
Trim Factor
-
-
Paging
-
-
-
Per Page
- -
-
-
 
-
-
-
-
Page limit
- -
-
-
Pageable
- = {{panel.size * panel.pages}} -
-
-
Page Overflow
- -
-
-
Panel Spy
-
-
- -
-
- The panel spy shows 'behind the scenes' information about a panel. It can - be accessed by clicking the in the top right - of the panel. -
-
+
\ No newline at end of file diff --git a/panels/table/module.js b/panels/table/module.js index c25f1f4cc33..833bb08e741 100644 --- a/panels/table/module.js +++ b/panels/table/module.js @@ -27,6 +27,7 @@ angular.module('kibana.table', []) $scope.panelMeta = { editorTabs : [ + {title:'Paging', src:'panels/table/pagination.html'}, {title:'Queries', src:'partials/querySelect.html'} ], status: "Stable", diff --git a/panels/table/pagination.html b/panels/table/pagination.html new file mode 100644 index 00000000000..0a119710dd5 --- /dev/null +++ b/panels/table/pagination.html @@ -0,0 +1,27 @@ +
+
+
Show Controls
+
+
+
Overflow
+ +
+
+
+
+
Per Page
+ +
+
+
 
+
+
+
+
Page limit
+ +
+
+
Pageable
+ = {{panel.size * panel.pages}} +
+
diff --git a/panels/terms/editor.html b/panels/terms/editor.html index 7c6757502b9..982ad06159d 100644 --- a/panels/terms/editor.html +++ b/panels/terms/editor.html @@ -1,4 +1,3 @@ -
@@ -50,15 +49,3 @@
-
Panel Spy
-
-
- -
-
- The panel spy shows 'behind the scenes' information about a panel. It can - be accessed by clicking the in the top right - of the panel. -
-
-
diff --git a/partials/dasheditor.html b/partials/dasheditor.html index c520e70bd64..c57cf9881bf 100644 --- a/partials/dasheditor.html +++ b/partials/dasheditor.html @@ -2,7 +2,7 @@
Dashboard settings
-
+
diff --git a/partials/panelgeneral.html b/partials/panelgeneral.html index 6c04bf99b5d..c2a142516e8 100644 --- a/partials/panelgeneral.html +++ b/partials/panelgeneral.html @@ -13,4 +13,10 @@
+
+ + +
\ No newline at end of file