Merge pull request #5603 from kennethtruong/patch-1

Add selectable option into Menu documentation
This commit is contained in:
偏右 2017-04-03 16:16:30 +08:00 committed by GitHub
commit 1d6ee39baa

View File

@ -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[] | |
@ -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