# Select Input

<figure><img src="/files/waMw89leLMWIiuvZDBvJ" alt=""><figcaption></figcaption></figure>

because of some limits of `x-splade-select` you develop a new component using [vue-multiselect](https://vue-multiselect.js.org/) this new component has features:

* Load data from APIs
* Search Sync with API
* Pagination support with load more button
* Auto Fill Selected Data from API

you can use this select input like `x-splade-select`

```markup
<x-tomato-admin-select 
    :label="__('Developer id')" 
    :placeholder="__('Developer id')" 
    name="developer_id"
    remote-url="{{route('admin.users.api')}}" 
    remote-root="data" 
    option-label=name.en 
    option-value="id" 
    type="relation" 
    query-by="name" 
    paginated
/>
```

`:type` is the type of select it can be select / relation

`:query-by` is the name of the request key sent when searching

`:paginated` is a bool for options of pagination


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tomatophp.com/tomato-admin/inputs/select-input.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
