Defining Target ListBox

Everything related to the development of modules in jamovi
User avatar
mcfanda@gmail.com
Posts: 460
Joined: Thu Mar 23, 2017 9:24 pm

Re: Defining Target ListBoxn

Post by mcfanda@gmail.com »

no joy (yet)
Unable to compile 'mixed.u.yaml':
TermLabel additionalProperty "format" exists in TermLabel when not allowed
User avatar
mcfanda@gmail.com
Posts: 460
Joined: Thu Mar 23, 2017 9:24 pm

Re: Defining Target ListBox

Post by mcfanda@gmail.com »

Unable to compile 'mixed.u.yaml':
TermLabel additionalProperty "format" exists in TermLabel when not allowed
User avatar
mcfanda@gmail.com
Posts: 460
Joined: Thu Mar 23, 2017 9:24 pm

Re: Defining Target ListBox

Post by mcfanda@gmail.com »

Unable to compile 'mixed.u.yaml':
TermLabel additionalProperty "format" exists in TermLabel when not allowed
dropmann
Posts: 79
Joined: Thu Feb 02, 2017 10:26 am

Re: Defining Target ListBox

Post by dropmann »

The compiler does have issue with this and i'll look into changing it so it doesn't. Let me find you a work around.
User avatar
mcfanda@gmail.com
Posts: 460
Joined: Thu Mar 23, 2017 9:24 pm

Re: Defining Target ListBox

Post by mcfanda@gmail.com »

thanks
User avatar
mcfanda@gmail.com
Posts: 460
Joined: Thu Mar 23, 2017 9:24 pm

Re: Defining Target ListBox

Post by mcfanda@gmail.com »

Hi Dropman

any luck with the issue here?
dropmann
Posts: 79
Joined: Thu Feb 02, 2017 10:26 am

Re: Defining Target ListBox

Post by dropmann »

Hi mcfanda,

I have been working on solving some issues related to the compiler which were required for you to move forward. Hopefully i'll have these ready tomorrow. Sorry for the delay, just want to make sure there aren't any unforeseen implications.
User avatar
mcfanda@gmail.com
Posts: 460
Joined: Thu Mar 23, 2017 9:24 pm

Re: Defining Target ListBox

Post by mcfanda@gmail.com »

great, thanks a lot
dropmann
Posts: 79
Joined: Thu Feb 02, 2017 10:26 am

Re: Defining Target ListBox

Post by dropmann »

Hi mcfanda,

sorry for the delayed reply. So there were a few issues, one was in the compiler and the other will be fixed in the next jamovi release. In regards to getting you moving forward, i have fixed the issue in the compiler. You can get the updated compiler using

Code: Select all

install.packages('jmvtools', repos='https://repo.jamovi.org')


This compiler will allow you to write the following yaml:

Code: Select all

  - type: ListBox
    name: randomTerms
    valueFilter: unique
    isTarget: true
    template:
        type: Label
        format: './rtermFormat'
This yaml will make the items in randomTerms list appear with the correct formatting, however, the feature of striking through the items that have non-existent variables will not be present. The TermsLabel control does have this feature, however, currently the 'format' property of TermsLabel has an issue and will only be fixed with the next release of jamovi.

So for the time being use the above yaml, and it is easily changed in the future.

please let me know if this is confusing or you still have issues. :D
dropmann
Posts: 79
Joined: Thu Feb 02, 2017 10:26 am

Re: Defining Target ListBox

Post by dropmann »

The padding for the label is slightly bigger but will be resolved next version.
Post Reply