material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[LeftNav] Make composable

Open puppybits opened this issue 11 years ago • 12 comments

Is there a way to make the LeftNav component composable? I need to add a custom component into the LeftNav. Is there a way to add another MenuItemType or pass in children into the render function on the LeftNav?

puppybits avatar Mar 10 '15 16:03 puppybits

++1

eliquious avatar Mar 11 '15 19:03 eliquious

Yeah I don't understand why this isn't the default behavior. +1

clauderic avatar Apr 28 '15 20:04 clauderic

+1

TanTan-TT avatar Apr 28 '15 22:04 TanTan-TT

Would love to see this, I'm trying to apply additional styles to the Menu that is currently wrapped in LeftNav, but there doesn't seem to be a way?

CumpsD avatar Jun 21 '15 17:06 CumpsD

+1 Did you guys figured a work around ?

olivierGM avatar Jul 08 '15 18:07 olivierGM

Also shouldn't the menu items of a leftnav be declared as elements instead of json passed as an attribute?

<LeftNav>
         <MenuItem 1/>
         <MenuItem 2/>
         <MenuItem 3/>
</LeftNav>

olivierGM avatar Jul 08 '15 19:07 olivierGM

+1

cutemachine avatar Jul 09 '15 14:07 cutemachine

+1

I'd go even further than @olivierGM's suggestion:

<LeftNav>
    <Menu>
        <Menu Item />
        ...
    </Menu>
</LeftNav>

This way I can put whatever content I like in there.

joebandenburg avatar Jul 24 '15 08:07 joebandenburg

#1319 composable LeftNave

yongxu avatar Aug 02 '15 09:08 yongxu

+1

bmanturner avatar Oct 01 '15 04:10 bmanturner

+1

michaelntech avatar Oct 22 '15 12:10 michaelntech

This is now possible with the improved LeftNav.

alitaheri avatar Dec 06 '15 21:12 alitaheri