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

Function formatSubMenu

component/Menu.js:87–96  ·  view source on GitHub ↗
(node, i, { popped, accordion, mode, current, horizontal, level })

Source from the content-addressed store, hash-verified

85 },
86
87 formatSubMenu(node, i, { popped, accordion, mode, current, horizontal, level }) {
88 let {title, index, disabled, active, children} = node.props;
89 let className = getClassList(node.props);
90 className.push('_item', 'sub-menu');
91 if (active) className.push('_active');
92 className = className.join(' ');
93 const childNodes = <Menu {...children.props} disabled={disabled} mode={mode} level={level}
94 horizontal={horizontal} accordion={accordion} popped={popped}
95 current={current} onChange={this.handleItemClick}>
96 {children.props.children}
97 </Menu>;
98
99 if (mode === 'hover' || horizontal) {

Callers

nothing calls this directly

Calls 1

getClassListFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…