mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-19 18:28:33 +00:00
feat(web/input): min and max date
This commit is contained in:
1 parent
d621aca29f
commit
5245e27a75
2 files changed
+5
No files matched your search
@@ -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}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user