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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.926",
3
+ "version": "0.0.927",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -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: false, options: [
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
  ]