Mirza Bilal
Mirza Bilal

Reputation: 551

Populate NetLogo Chooser at Runtime

I have two "Choosers" in NetLogo. Namely (Category and Sub-Category). The Category Chooser has values ("Animals" and "Birds") and Sub-Category chooser has all the animals and birds in it. I want to populate the Sub-Category Chooser at run time so that

1) If "Animals" is selected in Category, the Sub-Category chooser should show only animals

2) If "Birds" is selected in Category, the Sub-Category chooser should show only birds

Any help will be appreciated. I am beginner and learning NetLogo. Thank you

enter image description here

Upvotes: 5

Views: 445

Answers (1)

Andrew Yoak
Andrew Yoak

Reputation: 641

You'll need to download the "Goo" extension

https://github.com/NetLogo/Goo-Extension/

Alternatively there is an extension that does this and other things that is more developed:

https://github.com/CRESS-Surrey/eXtraWidgets

Upvotes: 5

Related Questions