DOMFBP
#
@furo/furo-fbp v6.11.0
import '@furo/fbp/src/DOMFBP.js';
exports DOMFBP js
extends src/DOMFBP.js
mixes FBP
DOMFBP allows you to append FBP to any dom element.
Usage:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/@furo/precompiled@2.3.0/dist/furo-fbp.js"></script>
<script>
import("https://cdn.jsdelivr.net/npm/@furo/precompiled@2.3.0/dist/DOMFBP.js").then(() => {
// activate FBP on body
const fbphandle = new DOMFBP(document.body)
// enable tracing
fbphandle._FBPTraceWires();
})
</script>
</head>
<body>
<button at-click="--buttonClicked" fn-remove="--buttonClicked">remove me</button>
</body>
</html>
|
1
2
3
4
|
import {DOMFBP} from '@furo/fbp/src/DOMFBP.js';
// append fbp to the body
new DOMFBP(document.body);
|
Attributes and Properties
#
Methods
#