diff --git a/js/controllers.js b/js/controllers.js index f6ca8e3f84558..ec54565f1fc4f 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 708ff5fa02385..4dde7de11f2a9 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 5f89f49f29593..99d7d121e200c 100644 --- a/panels/bettermap/editor.html +++ b/panels/bettermap/editor.html @@ -15,14 +15,3 @@
Tooltip Field
-
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 028e7687363f6..30be4aacbc7cc 100644 --- a/panels/histogram/editor.html +++ b/panels/histogram/editor.html @@ -1,4 +1,3 @@ -
@@ -60,15 +59,3 @@
Chart Settings
-
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 ee68d06624b8b..d39b3ab0e8b90 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 d20f7c4466dd0..f18b6962eaf08 100644 --- a/panels/map/editor.html +++ b/panels/map/editor.html @@ -9,9 +9,3 @@
Field
-
Panel Spy
-
-
- -
-
diff --git a/panels/pie/editor.html b/panels/pie/editor.html index d650cbdf80d35..f1de354d177ee 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 d31ed8e912cd0..bf77984002a60 100644 --- a/panels/table/editor.html +++ b/panels/table/editor.html @@ -1,7 +1,7 @@
-
Add field
+
Add Column
@@ -41,45 +41,8 @@
Sort
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 c25f1f4cc33b9..833bb08e741fe 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 0000000000000..0a119710dd5e2 --- /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 7c6757502b913..982ad06159d07 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 c520e70bd6468..c57cf9881bf40 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 6c04bf99b5dcb..c2a142516e823 100644 --- a/partials/panelgeneral.html +++ b/partials/panelgeneral.html @@ -13,4 +13,10 @@
+
+ + +
\ No newline at end of file