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

19 lines (16 loc) 616 B
define(function (require) { var _ = require('lodash'); return function loadPanelFunction(Private) { // Inject services here return function (panel, $scope) { // Function parameters here var panelTypes = { visualization: Private(require('plugins/kibana/dashboard/components/panel/lib/visualization')), search: Private(require('plugins/kibana/dashboard/components/panel/lib/search')) }; try { return panelTypes[panel.type](panel, $scope); } catch (e) { throw new Error('Loader not found for unknown panel type: ' + panel.type); } }; }; });