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