mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-18 18:18:34 +00:00
feat(web/input): support default values (#66)
* 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
This commit is contained in:
1 parent
14a04c4b68
commit
1990e3792f
6 files changed
+38
-5
No files matched your search
@@ -5,6 +5,9 @@ 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;
|
||||
|
||||
Reference in new issue
Block a user