MCPcopy Index your code
hub / github.com/flyfloor/react-component / formatLabelNode

Function formatLabelNode

component/DropDown.js:122–136  ·  view source on GitHub ↗
(labels)

Source from the content-addressed store, hash-verified

120 },
121
122 formatLabelNode(labels){
123 const {multi, searchable} = this.props;
124 const {open} = this.state;
125 let labelNode = null;
126 if (multi) {
127 labelNode = this.formatMultiInput(labels)
128 } else {
129 labelNode = searchable ?
130 this.formatSearchBar(labels)
131 : <DropDown.label onClick={() => this.toggleOpen(!open)}>
132 {labels}
133 </DropDown.label>;
134 }
135 return labelNode;
136 },
137
138 getNodesAndLabel(){
139 const {labelName, valueName, searchable, multi, placeHolder} = this.props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…