Dropdown API load on page load. #1042
-
Help WantedProblemHi there, just looking at moving over from Semantic UI and I didn't know if changes over here would help solve a problem I've had. I have a drop down that gets it's data from an API call, which works perfectly, except the list isn't loaded until the dropdown is clicked. I cannot for the life of me figure out how to get it to make the call when the page first loads so it is pre-poulated. Is this even possible? Any advice would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'm not sure this is doable actually... Maybe you can call |
Beta Was this translation helpful? Give feedback.
-
Closing because prudho's advise works as expected with the current codebase and there was no more response from the issuer. |
Beta Was this translation helpful? Give feedback.
I'm not sure this is doable actually... Maybe you can call
$('.ui.dropdown').dropdown('queryRemote', '', function() {});
so it should preload your data, but i'm not confident about this...