Integrate and interface with jQuery control

Hi there,

I want to use a jQuery Tree Control in the application I"m building with Anvil.

What is the best way to integrate this control so that:

  1. I can lay it out correctly on the Anvil canvas
  2. Interface with the control via my python client side code.

Thanks
SS

Is there a reason why you are looking at a jquery plugin rather than using Anvil UI components?

For example I make my trees by nesting linear panels inside data grid components. No javascript, no ajax, just python and drag and drop interface.

1 Like

@stefano.menci I want to use this particular jquery plugin because it is the closest thing to what looks like a file/directory structure. Also the underlying data structure is intuitive to how someone would navigate this content and it also comes with a slew of other functionality like right-click.

Essentially, not building it with Anvil means, I don’t have to develop any of the capabilities I want.

Just have to figure out how to make it work inside the Anvil environment.

SS

Search the forum for “Tabulator”. I integrated a JS data table because I needed functionality I didn’t have time to develop. It should give you some pointers. Make sure you find the latest one.

It’s not perfect by any means, and it’s no masterclass in programming, but it does work.

I’d post a link but I’m not at my computer.

1 Like