-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.html
94 lines (89 loc) · 5.1 KB
/
index.html
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!--
Copyright 2020 Bonitasoft S.A.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>bpmn-visualization - tooltip and popover attached to BPMN elements</title>
<link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="stylesheet" href="../../static/css/spectre.min.css" type="text/css">
<link rel="stylesheet" href="../../static/css/icons.min.css" type="text/css">
<link rel="stylesheet" href="../../static/css/main.css" type="text/css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/light-border.css" integrity="sha256-Fev9TKDfIZRihMeo+VloYBQ6vG1Pehn17SF0wQE1w/0=" crossorigin="anonymous">
<style>
#bpmn-container {
/* use absolute values for height to ensure that the vertical diagram is not fully displayed when the page is opened. */
/* width is relative to the window size */
left: 60px;
right: 60px;
height: 600px;
border-style: solid;
border-color: #B0B0B0;
border-width: 1px;
/* This ensures that the parts of the diagram outside of the container are not displayed. */
overflow: hidden;
}
/* Apply at runtime to the popup/popover html content */
.bpmn-popover {
/* needed for html content popover, for raw content, the select cursor is automatically set by tippyjs */
cursor: text;
font-size: 13px;
font-family: monospace;
}
</style>
<!-- Popover and Tooltip support -->
<script defer src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha256-whL0tQWoY1Ku1iskqPFvmZ+CHsvmRWx/PIoEvIeWh4I=" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tippy-bundle.umd.min.js" integrity="sha256-Pw/nDrJszyj2iHoZLinTjdfvfC8HmnMwStQt3HvtN94=" crossorigin="anonymous"></script>
<script defer src="../../static/js/link-to-sources.js"></script>
<!-- load bpmn-visualization -->
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bpmn-visualization.min.js" integrity="sha384-tH6ndjrd9jcLvZ+J/m4FW4BqMVGS14/wQj9VOpj6qmpFdrO96k20YXSTcJd5jJQr" crossorigin="anonymous"></script>
<script defer src="../../static/js/diagram/bpmn-diagrams.js"></script>
<script defer src="index.js"></script>
</head>
<body>
<header class="navbar bg-dark p-2">
<section class="navbar-section ml-2">
<a class="home" href="../../index.html">
<img src="../../static/img/logo_64x64_white.png" alt="logo" class="logo">
<span class="h3 text-light ml-2 lib-name-text">bpmn-visualization examples</span>
</a>
</section>
<section class="navbar-section">
<a href="https://process-analytics.github.io/bpmn-visualization-js/" class="mr-2 btn btn-secondary">Docs</a>
<div class="dropdown mr-2">
<a href="#" class="btn btn-primary dropdown-toggle" tabindex="0">
GitHub <span class="icon icon-caret icon-in-the-middle"></span>
</a>
<ul class="menu">
<li><a href="https://github.com/process-analytics/bpmn-visualization-js" class="mr-2 btn btn-link">Library</a></li>
<li><a href="https://github.com/process-analytics/bpmn-visualization-examples" class="mr-2 btn btn-link">Examples</a></li>
</ul>
</div>
</section>
</header>
<section class="container" style="margin-top: 3rem">
<div class="col-11 col-mx-auto mb-2">
<h2>Attach tooltip and popover to BPMN elements</h2>
Information in the tooltip/popover are provided by the <code>bpmn-visualization</code> API and the content in Tasks tooltip/popover
is selectable.
<ul>
<li>tooltip on Task 2 and last Sequence Flow</li>
<li>popover on click on Task 3 and Task 5</li>
</ul>
The tooltip/popover support is provided by <a href="https://atomiks.github.io/tippyjs/" target="_blank">Tippy.js</a>.
</div>
</section>
<section class="col-11 relative" style="margin-top: 2em">
<div id="bpmn-container"></div>
</section>
</body>
</html>