diff --git a/dashboard/v2/public/modules/search/searchDirective.js b/dashboard/v2/public/modules/search/searchDirective.js new file mode 100644 index 0000000..e9666c1 --- /dev/null +++ b/dashboard/v2/public/modules/search/searchDirective.js @@ -0,0 +1,17 @@ +/** + * Created by dbhimineni on 5/27/2015. + */ + +angular.module('dgc.search').directive( + "myDirective", function() { + return { + restrict: 'EA', + template: '<a href="javascript: void(0);" button-toggle toggle="isCollapsed" class="show-more" ng-click="isCollapsed = !isCollapsed">..show more</a>', + link: function($scope, element, attrs){ + $scope.isCollapsed = true; + console.log($scope.isCollapsed); + }, + transclude: true, + scope: {} + } + }); \ No newline at end of file