Skip to content

XDSMjs API

Rémi Lafage edited this page Apr 27, 2020 · 1 revision
  • XDSM_V1, XDSM_V2 constants : class for XDSM v1 or v2 div elements
  • XDSMjs(config) where config is a configuration object
    • createXdsm(xdsmFormat) : create XDSM hierarchy wrt to xdsmFormat
    • createSelectableXdsm(xdsmFormat, callback) : create single-level selectable XDSM where callback is a function receiving { fr: fromNodeId, to: toNodeId } when a node or a connection is clicked and return a SelectableXdsm which can be updated with updateMdo(xdsmFormat) and setSelection({ fr: fromNodeId, to: toNodeId }).
Clone this wiki locally