angulardart / angular_components

The official Material Design components for AngularDart. Used at Google in production apps.
https://pub.dev/packages/angular_components
374 stars 123 forks source link

Expand/collapse items in MaterialListComponent #467

Open muzuro opened 3 years ago

muzuro commented 3 years ago

Is it possible to expand/collapse items in MaterialListComponent? I have noticed there is mentioning in https://dart-lang.github.io/angular_components/#/material_list

If the material-list-item has a DropdownHandle in its ancestry, the dropdown will be closed on triggering (i.e. clicking or pressing enter/space on) the list item if closeOnActivate is true.

Does it mean I can create parent item and expand/collapse nested elements? Can you guys share an example if it is possible?

lejard-h commented 3 years ago

Related question on Stackoverflow https://stackoverflow.com/questions/63456561/is-it-possible-to-expand-collapse-items-in-materiallistcomponent?noredirect=1#comment112331672_63456561