View as Markdown

API reference: @salmonui/dropdowns/mention

MentionDataSourcetype

import type { MentionDataSource } from '@salmonui/dropdowns/mention';
type MentionDataSource<T> = Pick<DataSource<T>, 'read'>;

Remote suggestions: any @salmonui/data source (or another object with the structural read() of the Data Grid data source contract). The search text is sent as query.search, the result window as range.

MentionDataSource members (1, 1 inherited)
NameSignatureDescription
readinheritedread: (request: DataSourceRequest) => DataSourceResult<T> | Promise<DataSourceResult<T>>;