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

Update reorderable list #111

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jurassicplayer
Copy link
Contributor

Extend reorderable lists and hopefully improve consistency (?)

  • Changed label to an optional parameter
  • Added component prop to ReorderableEntry to allow for different components as list entries
  • Added activeCSS prop to ReorderableEntry/ReorderableList** for CSS of currently selected items while in reordering mode
  • Added inactiveCSS prop to ReorderableEntry/ReorderableList** for CSS of currently un-selected items while in reordering mode
  • Added defaultCSS prop to ReorderableEntry/ReorderableList** for the default CSS of items while NOT in reordering mode
  • Added fieldProps prop to ReorderableEntry/ReorderableList** for setting properties of the Field component encapsulating the entry
  • Added disabled prop to ReorderableList to disable list reordering functions (maybe needed for complex nested components?)
  • Added saveDescription prop to ReorderableList to customize Save Order action description text
  • Added reorderDescription prop to ReorderableList to customize Reorder action description text
  • Added focusableProps prop to ReorderableList for setting properties of the Focusable component encapsulating the reorderable list
  • Added inheritCurrentOrder auxiliary function to save plugin developers a little bit of time when updating ReorderableEntry position properties
  • Simplified position switching to hopefully be more reliable
  • Changed Back button function to revert to previously saved list state on back instead of saving.

** Shared properties between ReorderableEntry and ReorderableList are prioritized by ReorderableEntry first and ReorderableList second.

@TrainDoctor TrainDoctor added the enhancement New feature or request label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🔖 Ready for review
Development

Successfully merging this pull request may close these issues.

2 participants