What is the Javascript() function?

Hi @Marc @CmpCtrl,

Thanks for responding. This question stems from searching for a solution to this Tabulator topic 4174.

I have the following code working from a button and would like to implement a similar call from a Tabulator on_click() function, basically to get the effect of clicking on a link in a Tabulator cell.

btn.js_on_click(code="""window.open("./app2", "_self")""")

Trying to have the Tabulator on_click() do the following action:

def onGridClickPort(event):
    if (event["column"]=="Name") and (event["value"]=="Apple"):
        # Javascript("""window.open("./app2", "_self")""")
        pass

Thanks.

1 Like