Skip to content

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
@TrainDoctor
Copy link
Member

@AAGaming00 when you have time

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