MCPcopy Create free account
hub / github.com/neomjs/neo / createExampleComponent

Method createExampleComponent

examples/layout/form/MainContainer.mjs:76–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 }
75
76 createExampleComponent() {
77 return Neo.create(Form, {
78 layout : {
79 ntype: 'layout-form',
80 gap : '0 .5rem'
81 },
82 itemDefaults: {
83 ntype : 'textfield',
84 clearable: true,
85 value : 'Layout Demo'
86 },
87 items : [{
88 labelText: 'This is a wide Label inside Form',
89 name : 1
90 }, {
91 labelText: 'Small Label',
92 name : 2
93 }, {
94 module : Fieldset,
95 title : 'Fieldset with Layout',
96 layout : {
97 ntype: 'layout-form',
98 gap : '0 .5rem'
99 },
100 itemDefaults: {
101 ntype : 'textfield',
102 clearable: true,
103 value : 'Layout Demo'
104 },
105 items : [{
106 labelText: 'I am inside a fieldset',
107 name : 3
108 }, {
109 labelText: 'Fieldset with layout-form',
110 name : 4
111 }]
112 }]
113 })
114 }
115
116 /**
117 * Update the textfield labelText, based on index

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected