About Dynamic Tables

Everything related to the development of modules in jamovi

by Jinghaom » Tue Mar 12, 2019 8:19 am


it's me again
I have another problem.
I noticed the default module of JAMOVI. When changing the confidence interval, the confidence interval of the table header will also change.
such as
Interval 95% display
The table shows 95% Confidence Interval

Displayed when Interval is 50%
The table shows 50% Confidence Interval

I don't have a tutorial on dev.jamovi.org, it looks like addColumn(name, ...) in the Table API.
can be realised. . . .

Is there any other way? about how to modify the column heading of the table according to user settings

Thank you
Posts: 13
Joined: Mon Nov 05, 2018 1:05 pm

by jonathon » Tue Mar 12, 2019 9:00 am

see here:

https://github.com/jamovi/jmv/blob/mast ... #L461-L469

you'll notice this is in a separate `.init()` function ... this gets called before `.run()`, (however, `self$data` contains no rows during `.init()`)

analyses are run in two phases, first they're init'ed, then they are run. in this case, you can update the headings without needing to see the data, so we put it in the .init().

if you want to join our slack, you may find it easier (and quicker) to ask questions that way.

User avatar
Posts: 692
Joined: Fri Jan 27, 2017 10:04 am

by Jinghaom » Tue Mar 12, 2019 12:55 pm

Hi jonathon

Let me study it, thank you.

I am happy to join the slack .
But I was the first to hear about this software. I just studied it. It seems that I need an email address to join the workspace?
And my English is not very good, now all the exchanges are using Google Translate. So maybe the performance of English will be very strange, forgive me.

thank you very much
Posts: 13
Joined: Mon Nov 05, 2018 1:05 pm

Return to Module development