RemoteSelect is used to load Select options asynchronously from an API.
RemoteSelect
import { RemoteSelect } from '@nocobase/client-v2'; <RemoteSelect<{ name: string; title: string }> request={async () => { const { data } = await ctx.api.resource('providers').list(); return data.data; }} fieldNames={{ label: 'title', value: 'name' }} />;
request
() => Promise<T[]>
fieldNames
{ label; value }
options
DefaultOptionType[]
mode
SelectProps['mode']
showSearch
boolean
filterOption