-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathAdviserAndAssistantItemTypes.jsx
58 lines (55 loc) · 1.52 KB
/
AdviserAndAssistantItemTypes.jsx
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
import React, { Component } from 'react';
import { OrgDiagram } from '../Diagrams';
import { PageFitMode, GroupByType, Enabled, ItemType, AdviserPlacementType } from 'basicprimitives';
class Sample extends Component {
render() {
const config = {
pageFitMode: PageFitMode.None,
cursorItem: 0,
highlightItem: 0,
arrowsDirection: GroupByType.Children,
hasSelectorCheckbox: Enabled.False,
items: [
{
id: 0,
parent: null,
title: "James Smith",
description: "Parent Item",
image: "./photos/a.png"
},
{
id: 1,
parent: 0,
itemType: ItemType.Adviser,
adviserPlacementType: AdviserPlacementType.Right,
title: "Robert Canon",
description: "Adviser item",
groupTitle: "Adviser",
image: "./photos/b.png"
},
{
id: 2,
parent: 0,
itemType: ItemType.Assistant,
adviserPlacementType: AdviserPlacementType.Right,
title: "Ted Lucas",
description: "Assitant Item",
groupTitle: "Assistant",
image: "./photos/c.png"
},
{
id: 3,
parent: 0,
title: "Fritz Stuger",
description: "Regular Item",
groupTitle: "Regular",
image: "./photos/d.png"
}
]
};
return <div className="placeholder">
<OrgDiagram centerOnCursor={true} config={config} />
</div>
}
}
export default Sample;