-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
44 lines (41 loc) · 1.08 KB
/
config.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
import {
ComplexOption,
ElementNodeConfiguration,
PROPERTY_DATA_TYPE,
PROPERTY_DIRECTIONS,
TextPropertyConfiguration,
} from 'omnia-component-framework';
const targets: ComplexOption[] = [
{ value: '_self', text: '_self' },
{ value: '_blank', text: '_blank' },
{ value: '_parent', text: '_parent' },
{ value: '_top', text: '_top' },
{ value: 'framename', text: 'framename' },
];
import ComponentTypes from '../all-types';
const Link: ElementNodeConfiguration = {
type: ComponentTypes.LINK,
properties: [
{
key: 'link',
isReadOnly: false,
dataType: PROPERTY_DATA_TYPE.TEXTVALUE,
isCollection: false,
defaultValue: '',
direction: PROPERTY_DIRECTIONS.INBOUND,
} as TextPropertyConfiguration,
{
key: 'target',
isReadOnly: false,
dataType: PROPERTY_DATA_TYPE.COMPLEX_OPTION,
options: targets,
isCollection: false,
defaultValue: '_self',
direction: PROPERTY_DIRECTIONS.INBOUND,
} as TextPropertyConfiguration,
],
events: [],
methods: [],
isContainer: true,
};
export default Link;