()
| 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 |