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 (14 loc) 370 B
define(function (require) { var module = require('ui/modules').get('kibana'); module.directive('inputFocus', function ($timeout) { return { restrict: 'A', link: function ($scope, $elem, attrs) { $timeout(function () { $elem.focus(); if (attrs.inputFocus === 'select') $elem.select(); }); } }; }); });