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

Method setChildrenHint

src/FormControl.js:124–135  ·  view source on GitHub ↗
(hints, children)

Source from the content-addressed store, hash-verified

122 }
123
124 setChildrenHint (hints, children) {
125 Children.toArray(children).forEach((child) => {
126 if (child.type && child.type.displayName === 'FormItem') {
127 let hint = this.getHint(child.props);
128 if (hint) {
129 hints.push(hint);
130 }
131 } else if (child.children) {
132 this.setChildrenHint(hints, children);
133 }
134 });
135 }
136
137 setItems (props) {
138 let { label, layout, items, children, ...otherProps} = props;

Callers 1

setItemsMethod · 0.95

Calls 1

getHintMethod · 0.95

Tested by

no test coverage detected