Sha256: 698f0d5c3dc01df42cf5af66f3a7d4d9c486029658b08ec9b816121948fa4c8a
Contents?: true
Size: 1023 Bytes
Versions: 6
Compression:
Stored size: 1023 Bytes
Contents
define([ 'angular', 'app', 'lodash' ], function (angular, app, _) { 'use strict'; var module = angular.module('kibana.controllers'); module.controller('PulldownCtrl', function($scope, $rootScope, $timeout,ejsResource, querySrv) { var _d = { collapse: false, notice: false, enable: true }; _.defaults($scope.pulldown,_d); $scope.init = function() { $scope.querySrv = querySrv; // Provide a combined skeleton for panels that must interact with panel and row. // This might create name spacing issues. $scope.panel = $scope.pulldown; $scope.row = $scope.pulldown; }; $scope.toggle_pulldown = function(pulldown) { pulldown.collapse = pulldown.collapse ? false : true; if (!pulldown.collapse) { $timeout(function() { $scope.$broadcast('render'); }); } else { $scope.row.notice = false; } }; $scope.init(); } ); });
Version data entries
6 entries across 6 versions & 1 rubygems