update symbold for type alias

This commit is contained in:
Alex Wolfe 2016-09-23 11:10:11 -07:00 committed by Naomi Black
parent 61b13c13ec
commit b88b25a21c
2 changed files with 15 additions and 3 deletions

View File

@ -51,7 +51,7 @@ $api-symbols: (
),
type-alias: (
content: 'T',
background: $blue-grey-50
background: $light-green-600
)
);

View File

@ -1,3 +1,14 @@
/*eslint no-unused-vars: "angularIO" */
/*
* API List & Filter Directive
*
* A page displaying all of the angular API methods available
* including a filter that can hide/show methods bases on filter
* settings.
*/
angularIO.directive('apiList', function () {
var API_FILTER_KEY = 'apiFilter';
var API_TYPE_KEY = 'apiType';
@ -31,10 +42,9 @@ angularIO.directive('apiList', function () {
'</article>',
controllerAs: '$ctrl',
controller: function($scope, $attrs, $http, $location) {
// SET DEFAULTS
var $ctrl = this;
$ctrl.showMenu = false;
var isForDart = $attrs.lang === 'dart';
$ctrl.apiTypes = [
@ -63,11 +73,13 @@ angularIO.directive('apiList', function () {
$ctrl.showMenu = !$ctrl.showMenu;
};
// CLEAR FILTER
$ctrl.clearType = function () {
$ctrl.apiType = null;
$ctrl.showMenu = !$ctrl.showMenu;
};
// TOGGLE FILTER MENU
$ctrl.toggleMenu = function () {
$ctrl.showMenu = !$ctrl.showMenu;
};