mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(web/input): min and max date
This commit is contained in:
@@ -31,6 +31,8 @@ const DateField: React.FC<Props> = (props) => {
|
||||
inputFormat="DD/MM/YYYY"
|
||||
withAsterisk={props.row.required}
|
||||
clearable={props.row.clearable}
|
||||
minDate={props.row.min ? new Date(props.row.min) : undefined}
|
||||
maxDate={props.row.max ? new Date(props.row.max) : undefined}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -76,4 +76,7 @@ export interface IDateInput {
|
||||
description?: string;
|
||||
required?: boolean;
|
||||
placeholder?: string;
|
||||
clearable?: boolean;
|
||||
min?: string;
|
||||
max?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user