className | String | | additional css class of root dom node |
mode | String | vertical | one of ["vertical","horizontal","inline"] |
activeKey | Object | | initial and current active menu item's key. |
---|
defaultActiveFirst | Boolean | false | whether active first menu item when show if activeKey is not set or invalid |
---|
multiple | Boolean | false | whether allow multiple select |
---|
selectedKeys | String[] | [] | selected keys of items |
---|
defaultSelectedKeys | String[] | [] | initial selected keys of items |
---|
openKeys | String[] | [] | open keys of SubMenuItem |
---|
defaultOpenKeys | String[] | [] | initial open keys of SubMenuItem |
---|
onSelect | function({key:String, item:ReactComponent, domEvent:Event, selectedKeys:String[]}) | | called when select a menu item |
---|
onOpen | function({openKeys:String[]}) | | called when open a sub menu |
---|
onClose | function({openKeys:String[]}) | | called when close a sub menu |
---|
onDeselect | function({key:String, item:ReactComponent, domEvent:Event, selectedKeys:String[]}) | | called when deselect a menu item. only called when allow multiple |
---|
openSubMenuOnMouseEnter | bool | true | whether enable top items to open on mouse enter |
---|
closeSubMenuOnMouseEnter | bool | true | whether enable close submenu on mouse leave |
---|