Skip to content
This repository was archived by the owner on May 28, 2026. It is now read-only.

Config option to insert new item at start of list#72

Open
siahgoodwork wants to merge 12 commits into
sanity-io:mainfrom
the-good-work:new-item-at-start
Open

Config option to insert new item at start of list#72
siahgoodwork wants to merge 12 commits into
sanity-io:mainfrom
the-good-work:new-item-at-start

Conversation

@siahgoodwork

Copy link
Copy Markdown

In our use case, on certain content displays it is useful to have new items appear at the start of the list by default, instead of the end as it is currently.

I also added a button to push item to the start on the "Toggle Increment" buttons.

@SimeonGriggs

Copy link
Copy Markdown
Contributor

Hey @siahgoodwork good idea.

  1. Could you update the README to include instructions on how to use this
  2. Consider instead of newItemAtStart, a more generic newItemPosition which defaults to after and can be set to before | after

@siahgoodwork

siahgoodwork commented Feb 16, 2024

Copy link
Copy Markdown
Author

Hi @SimeonGriggs I notice the logic is already modified to your suggestion after doing an edit on my end 🤣
Have added a bit on the README to document this option and kept the logic that's already on main which is more elegant.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants