File tree Expand file tree Collapse file tree 1 file changed +3
-34
lines changed
packages/carbon-component-mapper/demo Expand file tree Collapse file tree 1 file changed +3
-34
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom' ;
33import FormRenderer from '@data-driven-forms/react-form-renderer' ;
4- // import { arraySchemaDDF } from './demo-schemas/widget-schema';
4+ import { arraySchemaDDF } from './demo-schemas/widget-schema' ;
55import { componentMapper , FormTemplate } from '../src' ;
66import { wizardSchema } from './demo-schemas/wizard-schema' ;
77import sandboxSchema from './demo-schemas/sandbox' ;
@@ -10,7 +10,7 @@ import demoSchema from '@data-driven-forms/common/src/demoschema';
1010import { Button } from 'carbon-components-react' ;
1111
1212const fieldArrayState = {
13- schema : demoSchema ,
13+ schema : arraySchemaDDF ,
1414 additionalOptions : {
1515 initialValues : {
1616 number : [ 1 , 2 , 3 , 4 ] ,
@@ -45,38 +45,7 @@ class App extends React.Component {
4545 componentMapper = { componentMapper }
4646 FormTemplate = { ( props ) => < FormTemplate { ...props } showFormControls = { this . state . additionalOptions . showFormControls } /> }
4747 onCancel = { console . log }
48- //schema={this.state.schema}
49- schema = { {
50- fields : [
51- {
52- component : 'dual-list-select' ,
53- name : 'dual-list' ,
54- label : 'select animal' ,
55- options : [
56- {
57- value : 'cats' ,
58- label : 'cats'
59- } ,
60- {
61- value : 'cats_1' ,
62- label : 'cats_1'
63- } ,
64- {
65- value : 'cats_2' ,
66- label : 'cats_2'
67- } ,
68- {
69- value : 'zebras' ,
70- label : 'zebras'
71- } ,
72- {
73- value : 'pigeons' ,
74- label : 'pigeons'
75- }
76- ]
77- }
78- ]
79- } }
48+ schema = { this . state . schema }
8049 { ...this . state . additionalOptions }
8150 />
8251 </ div >
You can’t perform that action at this time.
0 commit comments