MCPcopy Index your code
hub / github.com/Lobos/react-ui / renderControls

Method renderControls

src/Form.js:139–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 renderControls () {
140 const { data } = this.state;
141 const { hintType, controls, disabled, layout } = this.props;
142
143 return clone(controls).map((control, i) => {
144 if (typeof control !== 'object') {
145 return control;
146 } else {
147 control.key = control.key || control.name || hashcode(control);
148 control.hintType = control.hintType || hintType;
149 control.readOnly = control.readOnly || disabled;
150 control.layout = layout;
151 control.itemBind = this.itemBind;
152 control.itemUnbind = this.itemUnbind;
153 control.itemChange = this.itemChange;
154 control.formData = data;
155 return <FormControl { ...control } />;
156 }
157 });
158 }
159
160 renderChildren (children) {
161 let { data } = this.state;

Callers 2

renderMethod · 0.95
FormBuilder.jsFile · 0.80

Calls 2

hashcodeFunction · 0.90
cloneFunction · 0.85

Tested by

no test coverage detected