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

32 lines (26 loc) 1.16 kB
define(function (require) { // we need to load the css ourselves require('plugins/markdown_vis/markdown_vis.less'); // we also need to load the controller and used by the template require('plugins/markdown_vis/markdown_vis_controller'); // register the provider with the visTypes registry so that other know it exists require('ui/registry/vis_types').register(MarkdownVisProvider); function MarkdownVisProvider(Private) { var TemplateVisType = Private(require('ui/template_vis_type/TemplateVisType')); // return the visType object, which kibana will use to display and configure new // Vis object of this type. return new TemplateVisType({ name: 'markdown', title: 'Markdown widget', icon: 'fa-code', description: 'Useful for displaying explanations or instructions for dashboards.', template: require('plugins/markdown_vis/markdown_vis.html'), params: { editor: require('plugins/markdown_vis/markdown_vis_params.html') }, requiresSearch: false }); } // export the provider so that the visType can be required with Private() return MarkdownVisProvider; });