Cannot set properties of undefined (setting 'id') in OrgItemConfig()
iFlameDev opened this issue · 1 comments
iFlameDev commented
BasicPrimitives commented
You have to use new OrgItemConfig(arguments ....)
construct or provide a regular JSON objects instead.
control.setOptions({"items", [
new primitives.OrgItemConfig({
id: 0,
parent: null,
title: "James Smith",
description: "VP, Public Sector",
image: "../images/photos/a.png"
}),
new primitives.OrgItemConfig({
id: 1,
parent: 0,
title: "Ted Lucas",
description: "VP, Human Resources",
image: "../images/photos/b.png"
}),
new primitives.OrgItemConfig({
id: 2,
parent: 0,
title: "Fritz Stuger",
description: "Business Solutions, US",
image: "../images/photos/c.png"
})
]
});