@ansible/ansible-ui-framework 2.4.347 → 2.4.349
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,14 @@
|
|
1
1
|
import { ToolbarFilterType } from '../PageToolbarFilter';
|
2
2
|
import { PageAsyncQueryErrorTextType, PageAsyncSingleSelectOptionsFn } from './../../PageInputs/PageAsyncSingleSelect';
|
3
3
|
import { ToolbarFilterCommon } from './ToolbarFilterCommon';
|
4
|
+
type ToolbarOpenSingleSelectBrowse = (onSelect: (value: string) => void, defaultSelection?: string) => void;
|
4
5
|
export interface IToolbarAsyncSingleSelectFilter extends ToolbarFilterCommon {
|
5
6
|
type: ToolbarFilterType.AsyncSingleSelect;
|
6
7
|
queryOptions: PageAsyncSingleSelectOptionsFn<string>;
|
7
8
|
queryPlaceholder?: string;
|
8
9
|
queryErrorText?: PageAsyncQueryErrorTextType;
|
9
|
-
openBrowse?:
|
10
|
+
openBrowse?: ToolbarOpenSingleSelectBrowse;
|
10
11
|
isRequired?: boolean;
|
11
12
|
}
|
13
|
+
export declare function toolbarSingleSelectBrowseAdapter<T>(selectFn: (onItemSelect: (itemValue: T) => void, itemDefaultSelection?: T) => void, keyFn: (item: T) => string, objectFn: (name: string) => object): ToolbarOpenSingleSelectBrowse;
|
14
|
+
export {};
|