MCPcopy Create free account
hub / github.com/flyfloor/react-component / formatChild

Method formatChild

demo/example/MenuDemo.jsx:17–73  ·  view source on GitHub ↗
({current, accordion=false, onChange, style, popped=false, mode='click', horizontal=false, activeFirst=false})

Source from the content-addressed store, hash-verified

15 }
16
17 formatChild({current, accordion=false, onChange, style, popped=false, mode='click', horizontal=false, activeFirst=false}) {
18 return <Menu current={current} accordion={accordion} onChange={onChange} horizontal={horizontal} style={style} popped={popped} mode={mode}>
19 <Item index='sub0' sub={true} active={activeFirst} title={<p>Sub Menu</p>}>
20 <Menu className="second-menu">
21 <Item index="0">
22 <p>Sub item</p>
23 </Item>
24 <Item index="1">
25 <p>Sub item</p>
26 </Item>
27 <Item index="2" disabled={true}>
28 <p>Sub item</p>
29 </Item>
30 <Item sub={true} index="sub0_1" title={<p>Third Menu</p>}>
31 <Menu className="third-menu">
32 <Item index="10">
33 <p>Third item</p>
34 </Item>
35 <Item index="11">
36 <p>Third item</p>
37 </Item>
38 </Menu>
39 </Item>
40 </Menu>
41 </Item>
42 <Item index="sub1" sub={true} title={<p>Sub Menu</p>}>
43 <Menu className="second-menu">
44 <Item index="sub1_0" sub={true} title={<p>Third Menu</p>}>
45 <Menu className="third-menu">
46 <Item index="6" disabled={true}>
47 <p>Third item</p>
48 </Item>
49 <Item index="7">
50 <p>Third item</p>
51 </Item>
52 </Menu>
53 </Item>
54 <Item index="sub1_1" sub={true} title={<p>Third Menu</p>}>
55 <Menu className="third-menu">
56 <Item index="8">
57 <p>Third item</p>
58 </Item>
59 <Item index="9">
60 <p>Third item</p>
61 </Item>
62 </Menu>
63 </Item>
64 <Item index="5">
65 <p>Sub item</p>
66 </Item>
67 </Menu>
68 </Item>
69 <Item index="4">
70 <p>Item <a target="_blank" href="http://braavos.me" style={{'color': '#f00'}}>blog</a></p>
71 </Item>
72 </Menu>;
73 }
74

Callers 3

renderMethod · 0.95
Menu.jsFile · 0.80
Menu.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected