Sha256: a5aff927bed8db74ab014666fadea7cd5bed73c54b5cff0c242953ae1d519c6e

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

define([
  'angular',
  'app',
  'underscore'
],
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

5 entries across 5 versions & 1 rubygems

Version Path
kibana-sinatra-0.0.7 lib/kibana/assets/app/controllers/pulldown.js
kibana-sinatra-0.0.6 lib/kibana/assets/app/controllers/pulldown.js
kibana-sinatra-0.0.5 lib/kibana/assets/app/controllers/pulldown.js
kibana-sinatra-0.0.4 lib/kibana/assets/app/controllers/pulldown.js
kibana-sinatra-0.0.3 lib/kibana/assets/app/controllers/pulldown.js