MCPcopy
hub / github.com/Semantic-Org/Semantic-UI-React / renderMenu

Method renderMenu

src/modules/Tab/Tab.js:45–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 renderMenu() {
46 const { menu, panes, menuPosition } = this.props
47 const { activeIndex } = this.state
48
49 if (menu.tabular === true && menuPosition === 'right') {
50 menu.tabular = 'right'
51 }
52
53 return Menu.create(menu, {
54 autoGenerateKey: false,
55 overrideProps: {
56 items: _.map(panes, 'menuItem'),
57 onItemClick: this.handleItemClick,
58 activeIndex,
59 },
60 })
61 }
62
63 renderVertical(menu) {
64 const { grid, menuPosition } = this.props

Callers 2

renderMethod · 0.95
DropdownClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected