mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(web/select): searchable option (#513)
This commit is contained in:
@@ -32,6 +32,7 @@ const SelectField: React.FC<Props> = (props) => {
|
||||
description={props.row.description}
|
||||
withAsterisk={props.row.required}
|
||||
clearable={props.row.clearable}
|
||||
searchable={props.row.searchable}
|
||||
icon={props.row.icon && <LibIcon icon={props.row.icon} fixedWidth />}
|
||||
/>
|
||||
) : (
|
||||
@@ -49,6 +50,7 @@ const SelectField: React.FC<Props> = (props) => {
|
||||
description={props.row.description}
|
||||
withAsterisk={props.row.required}
|
||||
clearable={props.row.clearable}
|
||||
searchable={props.row.searchable}
|
||||
icon={props.row.icon && <LibIcon icon={props.row.icon} fixedWidth />}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -37,6 +37,7 @@ export type OptionValue = { value: string; label?: string };
|
||||
export interface ISelect extends BaseField<'select' | 'multi-select', string | string[]> {
|
||||
options: Array<OptionValue>;
|
||||
clearable?: boolean;
|
||||
searchable?: boolean;
|
||||
}
|
||||
|
||||
export interface INumber extends BaseField<'number', number> {
|
||||
|
||||
Reference in New Issue
Block a user