UNPKG

@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

26 lines (23 loc) 731 B
define(function (require) { var _ = require('lodash'); var $ = require('jquery'); require('ui/modules') .get('app/visualize') .directive('visEditorVisOptions', function (Private, $timeout, $compile) { return { restrict: 'E', template: require('plugins/kibana/visualize/editor/vis_options.html'), scope: { vis: '=', }, link: function ($scope, $el) { var $optionContainer = $('.visualization-options'); var $editor = $compile($scope.vis.type.params.editor)($scope); $optionContainer.append($editor); $scope.$watch('vis.type.schemas.all.length', function (len) { $scope.alwaysShowOptions = len === 0; }); } }; }); });