My use case was to do some complex maths (power / logs) based on screen values that a user could interact with.
I wanted to access the javascript Math library as bubble’s math functions were insufficient.
Solution adopted was:
javascript added to the page header. This allowed me to set up the math functions I could call from the page
htmlElement added to the page. this allowed me to connect the bubble element to my calculator via a listener
document.getElementById('user_input_1').addEventListener('change', myCalculator);/script>
3. Results can be put back on the page via the calculator function
document.getElementById('user_output_1').value = [calculation output];