Add index parameter to the vanX.list function #210
js-ahh-selector
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Sounds like a good idea! Will consider it in the new version of VanX. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @ali-alnasser570, This functionality was added into VanX 0.2.0. You can refer to the new API reference (https://vanjs.org/x#api-list) for more information. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
vanX.list
function currently takes two parameters for the item and deleter callback:I suggest adding an additional parameter for the index to the callback function:
Adding the index parameter would provide developers with valuable information about the position of the item in the list, which can be useful for various scenarios such as custom rendering, animations, or interaction tracking.
Beta Was this translation helpful? Give feedback.
All reactions