mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-22 02:58:33 +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
@@ -30,10 +30,10 @@ interface Props {
|
||||
// data: {
|
||||
// heading: "Police locker",
|
||||
// rows: [
|
||||
// { type: "input", label: "Locker number" },
|
||||
// { type: "input", label: "Locker number", placeholder: "420" },
|
||||
// { type: "checkbox", label: "Some checkbox" },
|
||||
// { type: "input", label: "Locker PIN", password: true, icon: "lock" },
|
||||
// { type: "checkbox", label: "Some other checkbox" },
|
||||
// { type: "checkbox", label: "Some other checkbox", checked: true },
|
||||
// {
|
||||
// type: "select",
|
||||
// label: "Locker type",
|
||||
@@ -43,7 +43,7 @@ interface Props {
|
||||
// { value: "option3", label: "Option 3" },
|
||||
// ],
|
||||
// },
|
||||
// { type: "number", label: "Number counter" },
|
||||
// { type: "number", label: "Number counter", default: 12 },
|
||||
// ],
|
||||
// },
|
||||
// },
|
||||
|
||||
Reference in new issue
Block a user