@spalger/kibana
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
27 lines (24 loc) • 735 B
JavaScript
define(function (require) {
var _ = require('lodash');
require('ui/modules').get('kibana/table_vis')
.directive('tableVisParams', function () {
return {
restrict: 'E',
template: require('plugins/table_vis/table_vis_params.html'),
link: function ($scope) {
$scope.$watchMulti([
'vis.params.showPartialRows',
'vis.params.showMeticsAtAllLevels'
], function () {
if (!$scope.vis) return;
var params = $scope.vis.params;
if (params.showPartialRows || params.showMeticsAtAllLevels) {
$scope.metricsAtAllLevels = true;
} else {
$scope.metricsAtAllLevels = false;
}
});
}
};
});
});