aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/workspace/attributes/attributes-options.ts
blob: 2a6924bc5e1441a44041d2430d0f5e23c99667b0 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { IDropDownOption } from 'onap-ui-angular/dist/form-elements/dropdown/dropdown-models';

export class AttributeOptions {
    public static readonly types: IDropDownOption[] = [
        {
            label: 'integer',
            value: 'integer',
        },
        {
            label: 'string',
            value: 'string',
        },
        {
            label: 'float',
            value: 'float'
        },
        {
            label: 'boolean',
            value: 'boolean'
        },
        {
            label: 'list',
            value: 'list'
        },
        {
            label: 'map',
            value: 'map'
        }
    ];

    public static readonly booleanValues: IDropDownOption[] = [
        {
            label: 'true',
            value: 'true',
        },
        {
            label: 'false',
            value: 'false',
        }
    ];

    public static readonly entrySchemaValues: IDropDownOption[] = [
        {
            label: 'integer',
            value: 'integer',
        },
        {
            label: 'string',
            value: 'string',
        },
        {
            label: 'float',
            value: 'float'
        },
        {
            label: 'boolean',
            value: 'boolean'
        }
    ];
}