mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
flowchart: add class 'clickable' on vertices with link or click function
This commit is contained in:
@@ -204,11 +204,13 @@ export const setClickEvent = function (id, functionName, link, tooltip) {
|
||||
setTooltip(id2, tooltip)
|
||||
setClickFun(id2, functionName)
|
||||
setLink(id2, link)
|
||||
setClass(id, 'clickable')
|
||||
})
|
||||
} else {
|
||||
setTooltip(id, tooltip)
|
||||
setClickFun(id, functionName)
|
||||
setLink(id, link)
|
||||
setClass(id, 'clickable')
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user