dmitriy-nz / strapi-plugin-remote-select

A powerful tool that adds select type inputs to your strapi with the ability to dynamically load options via API. Supports static and searchable endpoints—autocomplete.
https://www.npmjs.com/package/strapi-plugin-remote-select
MIT License
5 stars 1 forks source link

Static mode #3

Open lucasheim opened 1 week ago

lucasheim commented 1 week ago

Hey! I'm trying to find a good option for a simple dropdown of values, as the Strapi enumeration does not allow the label/value format. I stumbled on your plugin, and I see it says "Supports static and searchable endpoints—autocomplete". I skimmed through the code but couldn't find any mentions on how to make it work in a "static" mode, is that possible somehow?

I don't want my values to come from an endpoint, but I simply want to be able to set them on the field configuration, something like

value1:label1
value2:label2
value3:label3

I understand that this is not the main use case for your plugin, but if there's a way to do it, please let me know 🙏

dmitriy-nz commented 3 days ago

Hey! At the moment this plugin does not support static mode, this is not a part of this plugin. To get described behavior you can save static json with your options in the strapi static dir and specify local url to this json in the remote select config