mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-15 17:33:56 +00:00
* feat(web/dialog): Support placeholders * feat(web/dialog): Support default values * feat(web/dialog): Support default state of checkbox * feat(web/dialog): Support placeholder for number input * feat(web/dialog): Support default value for select
15 lines
346 B
TypeScript
15 lines
346 B
TypeScript
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
|
|
type RowType = "input" | "checkbox" | "select" | "number";
|
|
|
|
export interface Row {
|
|
type: RowType;
|
|
label: string;
|
|
placeholder?: string;
|
|
default?: string | number;
|
|
checked?: boolean;
|
|
options?: { value: string; label?: string }[];
|
|
password?: boolean;
|
|
icon?: IconProp;
|
|
}
|