Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand / collapse capability for List Items #249

Closed
jasonkylefrank opened this issue Jan 6, 2016 · 14 comments
Closed

Expand / collapse capability for List Items #249

jasonkylefrank opened this issue Jan 6, 2016 · 14 comments

Comments

@jasonkylefrank
Copy link

Hello,

Do you have plans to add the expand/collapse capability (and thus nested content) for List Items that the Material Design spec outlines?

image


This would be a huge benefit. Material UI has this capability - they call it "nested list items":

image

This capability could help fill the void that other control suites provide with controls like accordions, or "panel boxes" (a la Kendo UI). I realize that the Material Design spec does not currently show "accordions" or "panel boxes", but the nested list feature is shown by the spec.

Thanks and best wishes.

@jasonkylefrank
Copy link
Author

Anybody home?

@javivelasco
Copy link
Member

Hey @jasonkylefrank I forgot about this. We are thinking about a new more flexible way to display lists. Since it is not originally specified in the List spec, we didn't do it yet. It should be considered for the next list iteration, it's a very useful feature

@jasonkylefrank
Copy link
Author

Great! Any idea when that might be released?

@javivelasco
Copy link
Member

I can´t tell exactly when, there are other tasks with more priority like making the components mobile friendly and a more flexible autocomplete, sorry :(

@renato
Copy link

renato commented Mar 10, 2016

I'd like this too.

If you are thinking about a new more flexible way to display lists, is there anything we can do right now to help?

@pureux
Copy link

pureux commented Jun 6, 2016

Agreed, this would be really useful (though understanding there are also higher priorities). Thanks!

@mismith
Copy link

mismith commented Sep 9, 2016

+1
Anyone have any clever ways of doing this in the meantime?

@javivelasco
Copy link
Member

Any PR regarding this is very welcome in the PostCSS branch! Sorry for my delayed response, I'm lacking spare time lately

@thj-dk
Copy link

thj-dk commented Jan 11, 2017

Any progress on this? It would be truly awesome 👍

@javivelasco
Copy link
Member

It's going to be done in a refactor of the List component. For me it's a bit overcomplicated now and I'd like to make it simpler. No progress yet though

@thj-dk
Copy link

thj-dk commented Jan 17, 2017

Thanks for the update. Looking foward to it. If you want to share your thoughts on how you imagine this to be implemented, maybe we can help.

@javivelasco
Copy link
Member

No problem!! Sure I will :)

@hansena
Copy link

hansena commented Sep 24, 2017

I had a need to implement this functionality now and found the react-collapsible library to play very nicely with the react-toolbox list controls using a pattern like:

<List selectable ripple>
  <ListItem caption="USCM Overview" leftIcon="equalizer" onClick={this.navListOverviewClick} />
  <ListDivider />
  <Collapsible
	trigger={<ListItem rightIcon="keyboard_arrow_down" caption="Reliability" />}
	triggerWhenOpen={<ListItem rightIcon="keyboard_arrow_up" caption="Reliability" />}
	easing="ease-in-out" >
    <ListItem selectable caption="Overview" onClick={this.navListReliabilityOverviewClick} />
    <ListItem selectable caption="Availability" onClick={this.navListAvailabilityClick} />
  </Collapsible>
  <ListDivider />
</List>

temp
(hovering on "Swagger" list item)

@javivelasco
Copy link
Member

Cool! I wanted to say that the next version will be incredibly composable! This component has been completely re-written

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants