Sha256: 5a17c8ee11d022dfbafdcb98a000c9b3f9abe145692198c991a86e02c308f213
Contents?: true
Size: 1.03 KB
Versions: 9
Compression:
Stored size: 1.03 KB
Contents
/** * @ngdoc object * @name Bastion.content-views.controller:ContentViewsController * * @requires $scope * @requires Nutupane * @requires ContentView * @requires CurrentOrganization * * @description * Provides the functionality specific to ContentViews for use with the Nutupane UI pattern. * Defines the columns to display and the transform function for how to generate each row * within the table. */ angular.module('Bastion.content-views').controller('ContentViewsController', ['$scope', 'Nutupane', 'ContentView', 'CurrentOrganization', function ($scope, Nutupane, ContentView, CurrentOrganization) { var nutupane = new Nutupane(ContentView, { 'nondefault': true, 'organization_id': CurrentOrganization, 'sort_by': 'name', 'sort_order': 'ASC' }); $scope.table = nutupane.table; $scope.removeRow = nutupane.removeRow; $scope.table.closeItem = function () { $scope.transitionTo('content-views.index'); }; }] );
Version data entries
9 entries across 9 versions & 1 rubygems