Callbacks Documentation
Edit on
Codepen.io
Codepen.io
data-after-markup-callback
A JavaScript function you should provide, which will be invoked after the markup is performed. No parameters are passed to this function.
x
26
1
Product Display Name:
2
<span data-fsc-item-path="phot-io-main-app" data-fsc-item-display>
3
<!--This value will be replaced-->
4
</span>
5
6
<!--
7
DEMO SETUP
8
- Initialize the Store Builder Library
9
-->
10
<script
11
id="fsc-api"
12
src="https://sbl.onfastspring.com/sbl/1.0.2/fastspring-builder.min.js"
13
type="text/javascript"
14
data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples"
15
data-after-markup-callback="dataAfterMarkupCallback">
16
</script>
17
18
<!--
19
dataAfterMarkupCallback
20
- In this example, it will write to the console.log when the callback is invoked.
21
-->
22
<script>
23
function dataAfterMarkupCallback() {
24
console.log("This is when the data-after-markup-callback is invoked.");
25
}
26
</script>
1
1
1
1