Hello guys
I’ve a priority I wish to make a drop-down menu that can show the listing of nation indicators. I’ve a JSON file with all the symptoms, their flags and names of every nation, I used to be capable of make the dropdown menu and I wish to show the info contained within the JSON file in my dropdown menu.
Right here is my .JSON file
Right here is my file in JS the place I create the choice in my dropdown menu
Thanks prematurely please assist me
you possibly can discuss with: JSON · Cocos Creator
Might you present your demo, and present the ultimate outcome you need?
In a logic that I wish to make a drop-down menu to show and make a selection on the nations for the participant, right here it’s
I wish to show the knowledge contained within the JSON file within the Dropdown Menu
You may discuss with doc i metioned earlier than to get JSON knowledge from JSON file , then to set knowledge to the Dropdown Menu.
Hello, CocosCreator 3.5.0 already helps importing json in ts. You are able to do what I did through the use of.
can I try this in Cocos Creator 2.4.5? I’ve tried it, however within the console displaying error message “Can’t discover module”
This matter was robotically closed 24 hours after the final reply. New replies are not allowed.