Sha256: 4e1f66c1538faf7a9ea66c60f2b93cabad6a6d1b9c59ae07c6fbeddcdcfc6522

Contents?: true

Size: 708 Bytes

Versions: 9

Compression:

Stored size: 708 Bytes

Contents

/**
 * @ngdoc directive
 * @name Bastion.components.directive:bstDropdown
 * @restrict EA
 *
 * @description
 *   Provides a "dropdown" menu.
 */
angular.module('Bastion.components').directive('bstDropdown', function () {
    return {
        restrict: 'EA',
        replace: true,
        scope: {
            'dropdown' : '=bstDropdown'
        },
        templateUrl: 'components/views/bst-dropdown.html',

        controller: ['$scope', function ($scope) {
            $scope.setHover = function (item, mousein) {
                item.active = mousein;
            };

            $scope.isRight = function (direction) {
                return direction === 'right';
            };
        }]
    };
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bastion-0.1.14 app/assets/javascripts/bastion/components/bst-dropdown.directive.js
bastion-0.2.2 app/assets/javascripts/bastion/components/bst-dropdown.directive.js
bastion-0.2.1 app/assets/javascripts/bastion/components/bst-dropdown.directive.js
bastion-0.2.0 app/assets/javascripts/bastion/components/bst-dropdown.directive.js
bastion-0.1.13 app/assets/javascripts/bastion/components/bst-dropdown.directive.js
bastion-0.1.12 app/assets/javascripts/bastion/components/bst-dropdown.directive.js
bastion-0.1.11 app/assets/javascripts/bastion/components/bst-dropdown.directive.js
bastion-0.1.10 app/assets/javascripts/bastion/components/bst-dropdown.directive.js
bastion-0.1.9 app/assets/javascripts/bastion/components/bst-dropdown.directive.js