Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form-select remote-url set selected #48

Open
mferenc79 opened this issue Apr 22, 2023 · 1 comment
Open

form-select remote-url set selected #48

mferenc79 opened this issue Apr 22, 2023 · 1 comment

Comments

@mferenc79
Copy link

mferenc79 commented Apr 22, 2023

for form-select remote-url, there are 30,000 lines, how can I make it so that the whole thing is not loaded, but the values are loaded based on a search, e.g. max 10 plus the default value if it is selected

@mariolucasdev
Copy link

You can use a limiter to your api and the attributes remote_url and :choices with searchEnabled
Example:

<x-splade-select name="region" remote-url="/yourapi/registers?limit=10" :choices="['searchEnabled' => true ]" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants