update symbold for type alias
This commit is contained in:
parent
61b13c13ec
commit
b88b25a21c
@ -51,7 +51,7 @@ $api-symbols: (
|
|||||||
),
|
),
|
||||||
type-alias: (
|
type-alias: (
|
||||||
content: 'T',
|
content: 'T',
|
||||||
background: $blue-grey-50
|
background: $light-green-600
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -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 () {
|
angularIO.directive('apiList', function () {
|
||||||
var API_FILTER_KEY = 'apiFilter';
|
var API_FILTER_KEY = 'apiFilter';
|
||||||
var API_TYPE_KEY = 'apiType';
|
var API_TYPE_KEY = 'apiType';
|
||||||
@ -31,10 +42,9 @@ angularIO.directive('apiList', function () {
|
|||||||
'</article>',
|
'</article>',
|
||||||
controllerAs: '$ctrl',
|
controllerAs: '$ctrl',
|
||||||
controller: function($scope, $attrs, $http, $location) {
|
controller: function($scope, $attrs, $http, $location) {
|
||||||
|
// SET DEFAULTS
|
||||||
var $ctrl = this;
|
var $ctrl = this;
|
||||||
|
|
||||||
$ctrl.showMenu = false;
|
$ctrl.showMenu = false;
|
||||||
|
|
||||||
var isForDart = $attrs.lang === 'dart';
|
var isForDart = $attrs.lang === 'dart';
|
||||||
|
|
||||||
$ctrl.apiTypes = [
|
$ctrl.apiTypes = [
|
||||||
@ -63,11 +73,13 @@ angularIO.directive('apiList', function () {
|
|||||||
$ctrl.showMenu = !$ctrl.showMenu;
|
$ctrl.showMenu = !$ctrl.showMenu;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// CLEAR FILTER
|
||||||
$ctrl.clearType = function () {
|
$ctrl.clearType = function () {
|
||||||
$ctrl.apiType = null;
|
$ctrl.apiType = null;
|
||||||
$ctrl.showMenu = !$ctrl.showMenu;
|
$ctrl.showMenu = !$ctrl.showMenu;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TOGGLE FILTER MENU
|
||||||
$ctrl.toggleMenu = function () {
|
$ctrl.toggleMenu = function () {
|
||||||
$ctrl.showMenu = !$ctrl.showMenu;
|
$ctrl.showMenu = !$ctrl.showMenu;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user