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

16 lines (13 loc) 383 B
define(function (require) { var moment = require('moment'); return function brushEventProvider(timefilter) { return function (event) { var from = moment(event.range[0]); var to = moment(event.range[1]); if (to - from === 0) return; timefilter.time.from = from; timefilter.time.to = to; timefilter.time.mode = 'absolute'; }; }; });