-
Notifications
You must be signed in to change notification settings - Fork 8k
/
app_category.ts
44 lines (39 loc) · 1.2 KB
/
app_category.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
/**
* A category definition for nav links to know where to sort them in the left hand nav
* @public
*/
export interface AppCategory {
/**
* Unique identifier for the categories
*/
id: string;
/**
* Label used for category name.
* Also used as aria-label if one isn't set.
*/
label: string;
/**
* If the visual label isn't appropriate for screen readers,
* can override it here
*/
ariaLabel?: string;
/**
* The order that categories will be sorted in
* Prefer large steps between categories to allow for further editing
* (Default categories are in steps of 1000)
*/
order?: number;
/**
* Define an icon to be used for the category
* If the category is only 1 item, and no icon is defined, will default to the product icon
* Defaults to initials if no icon is defined
*/
euiIconType?: string;
}