ywana-core8 0.0.926 → 0.0.927
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain2/DynamicForm.js +2 -1
- package/src/domain2/DynamicForm.test.js +1 -1
package/package.json
CHANGED
@@ -51,6 +51,7 @@ const DynamicFormField = (props) => {
|
|
51
51
|
|
52
52
|
const label = required ? `${field.label} *` : field.label
|
53
53
|
const readOnly = field.readOnly || field.editable === false
|
54
|
+
const { position = "bottom" } = field
|
54
55
|
|
55
56
|
switch (format) {
|
56
57
|
case FORMATS.TEXT:
|
@@ -66,7 +67,7 @@ const DynamicFormField = (props) => {
|
|
66
67
|
case FORMATS.COLOR:
|
67
68
|
return <ColorField id={id} onChange={change} value={value} />
|
68
69
|
default:
|
69
|
-
return options ? <DropDown id={id} label={label} value={value} onChange={change} options={buildOptions()} outlined readOnly={readOnly}/> :
|
70
|
+
return options ? <DropDown id={id} label={label} value={value} onChange={change} options={buildOptions()} outlined readOnly={readOnly} position={position}/> :
|
70
71
|
<TextField id={id} label={label} value={value} onChange={change} outlined readOnly={readOnly} />
|
71
72
|
}
|
72
73
|
}
|
@@ -19,7 +19,7 @@ const DynamicFormTest = (props) => {
|
|
19
19
|
{ id: "id", type: "string", label: "ID", editable: false },
|
20
20
|
{ id: "name", type: "string", label: "Name", filter: true, like: true },
|
21
21
|
{
|
22
|
-
id: "gender", type: "string", label: "Gender", filter: true, editable:
|
22
|
+
id: "gender", type: "string", label: "Gender", filter: true, editable: true, options: [
|
23
23
|
{ label: "Masculine", value: 1 },
|
24
24
|
{ label: "Feminine", value: 0 }
|
25
25
|
]
|