@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
23 lines (22 loc) • 712 B
JavaScript
define(function (require) {
require('ui/modules')
.get('apps/settings')
.directive('kbnSettingsIndexHeader', function (config) {
return {
restrict: 'E',
template: require('plugins/kibana/settings/sections/indices/_index_header.html'),
scope: {
indexPattern: '=',
setDefault: '&',
refreshFields: '&',
delete: '&'
},
link: function ($scope, $el, attrs) {
$scope.delete = attrs.delete ? $scope.delete : null;
$scope.setDefault = attrs.setDefault ? $scope.setDefault : null;
$scope.refreshFields = attrs.refreshFields ? $scope.refreshFields : null;
config.$bind($scope, 'defaultIndex');
}
};
});
});