Commit Graph

15 Commits

Author SHA1 Message Date
Luke
8ad04de0bc refactor(web/input): move field components into fields folder 2022-10-27 14:22:15 +02:00
Luke
d4dc68f21e fix(web/input): remove unused isReadOnly property 2022-10-27 13:46:45 +02:00
Luke
a6a0e4905f feat(web/input): description tooltip on fields 2022-10-27 13:45:27 +02:00
davidxd33
4f69c7c5c1 feat(interface/dialog): disabled row property (#142)
* feat(interface/dialog): readonly, disabled flags

* Update TS prop types

* refactor(web/input): remove read only property

Co-authored-by: davidxd33 <dponce@gmail.com>
2022-10-27 09:17:53 +02:00
Luke
39f7b6d78a fix(web/dialog): set slider value to min if default is not defined 2022-10-05 16:16:39 +02:00
Luke
b638e435ea feat(web/input): allow defining icon for number row field 2022-09-08 12:00:41 +02:00
Luke
4a5251b60b chore(web): add prettier and format 2022-08-27 15:58:36 +02:00
Luke
52ce1c53ae feat(web): support min and max value for number input type 2022-08-27 15:54:43 +02:00
ANTOND
f3ca6ee504 feat(web/dialog): add slider input type (#69) 2022-08-10 21:05:27 +02:00
ANTOND
cb5dac6151 refactor(web/dialog): split interfaces (#68)
* tweak(interface/menu): SetNuiFocusKeepInput

Default to allow input; disable with "disableInput = false" during registration.

* refactor(web/dialog): Split interfaces

for better typing of row options for different input types

* fix(web/dialog): Use proper type for onChange event

Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com>
2022-08-09 23:50:14 +02:00
ANTOND
de8fb447a9 fix(web/dialog): setting non-selectable placeholder (#67)
* tweak(interface/menu): SetNuiFocusKeepInput

Default to allow input; disable with "disableInput = false" during registration.

* fix(web/dialog): Setting non-selectable placeholder

React doesn't like the 'selected' attribute (causing a warning in web console - not in-game).

'defaultValue' should be used instead so there is no need to create placeholder option if 'defaultValue' is already defined by row options.

* fix(web/dialog): Use proper type for onChange event

Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com>
2022-08-09 23:37:31 +02:00
ANTOND
1990e3792f 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
2022-08-05 15:10:37 +02:00
Luke
5183607279 feat(web/input): number input type 2022-06-19 14:57:03 +02:00
Luke
7b6cf6682f feat(web/input): display value when no label is provided for select 2022-06-11 11:59:00 +02:00
Luke
48dae99cc0 refactor(web/dialog): Separate fields into individual components 2022-05-03 15:08:28 +02:00