Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Populate NetLogo Chooser at Runtime

Tags:

netlogo

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

like image 522
Mirza Bilal Avatar asked Aug 19 '16 15:08

Mirza Bilal


1 Answers

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

like image 84
Andrew Yoak Avatar answered Nov 21 '22 05:11

Andrew Yoak