mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
refactor(web/input): separate date and time fields
This commit is contained in:
@@ -70,7 +70,7 @@ export interface IColorInput {
|
||||
}
|
||||
|
||||
export interface IDateInput {
|
||||
type: 'date' | 'date-range' | 'time';
|
||||
type: 'date' | 'date-range';
|
||||
label: string;
|
||||
default?: string | [string, string] | true;
|
||||
disabled?: boolean;
|
||||
@@ -84,6 +84,19 @@ export interface IDateInput {
|
||||
icon?: IconProp;
|
||||
}
|
||||
|
||||
export interface ITimeInput {
|
||||
type: 'time';
|
||||
label: string;
|
||||
default?: string;
|
||||
disabled?: boolean;
|
||||
description?: string;
|
||||
format?: '12' | '24';
|
||||
required?: boolean;
|
||||
clearable?: boolean;
|
||||
placeholder?: string;
|
||||
icon?: IconProp;
|
||||
}
|
||||
|
||||
export interface ITextarea {
|
||||
type: 'textarea';
|
||||
label: string;
|
||||
|
||||
Reference in New Issue
Block a user