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

27 lines (22 loc) 698 B
define(function (require) { return function TableGroupProvider() { var _ = require('lodash'); /** * Simple object that wraps multiple tables. It contains information about the aggConfig * and bucket that created this group and a list of the tables within it. */ function TableGroup() { this.aggConfig = null; this.key = null; this.title = null; this.tables = []; } TableGroup.prototype.field = function () { if (this.aggConfig) return this.aggConfig.field(); }; TableGroup.prototype.fieldFormatter = function () { if (this.aggConfig) return this.aggConfig.fieldFormatter(); }; return TableGroup; }; });