Skip to main content

afterUnSelect

fires after unselecting an item

afterUnSelect: (id: Id, subId?: Id | undefined) => void;

Parameters:

  • id: string | number - the item id
  • subId: string | number | undefined - optional, the id of a subheader of a swimlane or a text element of a line

Example

const diagram = new dhx.Diagram("diagram_container", {
type: "org",
select: true
});

diagram.events.on("AfterUnSelect", function (id) {
console.log(diagram.data.getItem(id).text + " was unselected");
});

Change log:

SubId parameter has been added in v4.1.