gwt-material-addins
gwt-material-addins copied to clipboard
Can MaterialCollection have CollectionType.RADIO?
Currently we can only have AVATAR for an icon and CHECKBOX on MaterialCollectionItem.
public enum CollectionType implements CssType {
AVATAR("avatar"),
CHECKBOX("checkbox");
// ..
}
Would it be possible to add a RADIO type as well?
I could implement this but I am not sure how. I see that MaterialCollection is currently not aware of it's children and which type they are having.
MaterialCollectionItem does the whole ClickHandler registration by itself but this does not work that way for a RADIO type because of course the others have to be set to false once another is clicked.
If somebody could explain me how MaterialCollapsible is managing to do this when it's set to ACCORDION then I could give it a try on MaterialCollection.