UNPKG

kibana-123

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

25 lines (20 loc) 632 B
import _ from 'lodash'; export default function TableGroupProvider() { /** * 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.getField(); }; TableGroup.prototype.fieldFormatter = function () { if (this.aggConfig) return this.aggConfig.fieldFormatter(); }; return TableGroup; };