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

Function formatOptionCell

component/DropDown.js:203–217  ·  view source on GitHub ↗
({ label, value, selected, children, disabled })

Source from the content-addressed store, hash-verified

201 },
202
203 formatOptionCell({ label, value, selected, children, disabled }){
204 const content = children ? children : label;
205 let node = disabled ?
206 <DropDown.Option disabled={disabled} selected={selected}>
207 {content}
208 </DropDown.Option>
209 : <DropDown.Option disabled={disabled} selected={selected} onClick={() => this.handleChangeSelect(value)}>
210 {content}
211 </DropDown.Option>
212 return (
213 <li key={value}>
214 {node}
215 </li>
216 );
217 },
218
219 formatSearchBar(text){
220 const {filterText} = this.state;

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…