Making correlation as a function of drag and drop

Everything related to the development of modules in jamovi
Post Reply
Abdullah
Posts: 13
Joined: Thu Jun 17, 2021 5:49 am

Making correlation as a function of drag and drop

Post by Abdullah »

Request for Guidance in Our new Module:
The core functionality of our new modul (Composite-SEM) is fine, we are currently working on enhancing the user interface and would greatly appreciate some expert guidance. We are specifically trying to implement a "model relationships" selection feature, similar to the "Endogenous model" option in the semlj module.

I have attempted to replicate this functionality within my module but haven't been successful so far. Given your expertise, any advice, pointers, or documentation you could share on the best approach to achieve this would be incredibly helpful and would ensure the module meets the high standards of the jamovi library.
Here is how SEMlj is linking varibles
WhatsApp Image 2025-12-23 at 18.17.19.jpeg
WhatsApp Image 2025-12-23 at 18.17.19.jpeg (38.3 KiB) Viewed 5363 times
However, the best we could is opening a line where the user should "write" the relationship, which we want to avoid and replace with a drag and drop functionality.
WhatsApp Image 2025-12-23 at 18.17.19 (1).jpeg
WhatsApp Image 2025-12-23 at 18.17.19 (1).jpeg (36.92 KiB) Viewed 5363 times
I am looking forward to your feedback on the submission and any suggestions you might have regarding the technical implementation mentioned above.

Thank you for your time and for the amazing work you do with jamovi.
Abdullah
User avatar
mcfanda@gmail.com
Posts: 580
Joined: Thu Mar 23, 2017 9:24 pm

Re: Making correlation as a function of drag and drop

Post by mcfanda@gmail.com »

Hi
why can you not replicate the UI of SEMLj? Do you want to have something different? If you want to use the same approach of SEMLj, you can simply use the code (javascript and yaml) you find in the module. Start from there and change it as you wish
Post Reply