Hi all, I’m quite new to programming.
Would really appreciate your help.
What I’m trying to do:
Get a simple Javascript code to run.
It’s a product tour package that highlights elements called driver.js - Installation - Driver.js
I’m trying to highlight a simple button.
I keep getting a “TypeError: ‘proxyobject’ object is not callable” when I try to call existing methods of this package.
What I’ve tried and what’s not working:
I’ve tried importing in multiple ways and followed the quickstart example of Quill.
- I added the script to “Native Libraries”
- I imported it using the ‘anvil.js.window import driver’
- Then trying to call the ‘highlight’ method but I keep getting error ““TypeError: ‘proxyobject’ object is not callable””
Code Sample:
from ._anvil_designer import Form1Template
from anvil import *
from anvil.js.window import Quill
from anvil.js.window import driver
import anvil.js
class Form1(Form1Template):
def __init__(self, **properties):
self.init_components(**properties)
button = anvil.js.get_dom_node(self.start_here_button)
self.driver = driver.highlight({
'element': button,
'popover': {
title: "Title",
description: "Description"
}
});
Clone link: