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

GenericList/SimpleList widget extension: addable, removable, reorderable [MUI] #145

Closed
jbcpollak opened this issue Apr 28, 2021 · 2 comments
Labels
enhancement New feature or request material-ui About the material-ui design-system widget
Projects

Comments

@jbcpollak
Copy link

For which Design-System: Material-UI

Summary

I would like to be able to hide the add, remove, and reorder buttons in the GenericList. It would also be useful to the SimpleList.

I would suggest adding parameters addable, removeable and reorderable, the default of which would be true for all of them, so the current behavior doesn't change. Setting any of them to false would make that part of the widget disappear.

@elbakerino elbakerino added enhancement New feature or request material-ui About the material-ui design-system widget labels Apr 28, 2021
@elbakerino elbakerino added this to To do in ui-schema via automation Apr 28, 2021
@elbakerino
Copy link
Member

elbakerino commented Apr 28, 2021

This would be a split / more granular readOnly (which doesn't inherit at the moment) #33

Good idea!

@elbakerino
Copy link
Member

Released in ds-material 0.2.6, a little bit other naming to be consistent and more concise.

  • notDeletable when true doesn't allow deletion of items
  • notAddable when true doesn't allow adding items
  • notSortable when true doesn't allow sorting of items
    • only for GenericList, as SimpleList doesn't support sorting

ui-schema automation moved this from To do to Done May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request material-ui About the material-ui design-system widget
Projects
ui-schema
  
Done
Development

No branches or pull requests

2 participants