Skip to content

Commit

Permalink
Add selectable option into Menu documentation
Browse files Browse the repository at this point in the history
I had to read the source code to figure out that there was a property called selectable. So hopefully this will help save someone time. (Though this is an option in the rc-menu I made a PR there to add it in the doc also react-component/menu#79)

(I was trying to make a contextmenu out of this menu component which is why I needed to turn selectable off)
  • Loading branch information
kennethtruong authored Apr 3, 2017
1 parent dfc59f3 commit 31ec5b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/menu/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ More layout and samples: [layout](/docs/spec/layout).
|----------|---------------|----------|--------------|
| theme | color of the theme | string: `light` `dark` | `light` |
| mode | type of the menu; vertical, horizontal, and inline modes are supported | string: vertical horizontal inline | vertical |
| selectable | allow selecting menu items | boolean | true |
| selectedKeys | array with the keys of currently selected menu items | string[] | |
| defaultSelectedKeys | array with the keys of default selected menu items | string[] | |
| openKeys | array with the keys of currently opened sub menus | string[] | |
Expand Down Expand Up @@ -58,7 +59,7 @@ More layout and samples: [layout](/docs/spec/layout).
| disabled | disabled or not | boolean | false |
| key | unique id of the menu item | string | |
| title | title of the sub menu | string\|ReactNode | |
| children | sub menus or sub menu items | Arrat<MenuItem\|SubMenu> | |
| children | sub menus or sub menu items | Array<MenuItem\|SubMenu> | |
| onTitleClick | callback of the clicked sub menu title | Function({ eventKey, domEvent }) | |

### Menu.ItemGroup props
Expand Down

0 comments on commit 31ec5b7

Please sign in to comment.