From 85dd889c67a836e21fad29763f391af9c26806da Mon Sep 17 00:00:00 2001 From: Caleb Porzio Date: Wed, 10 Apr 2024 15:51:38 -0400 Subject: [PATCH] update sort docs --- packages/docs/src/en/plugins/sort.md | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/packages/docs/src/en/plugins/sort.md b/packages/docs/src/en/plugins/sort.md index 4f887c652..b45f84a25 100644 --- a/packages/docs/src/en/plugins/sort.md +++ b/packages/docs/src/en/plugins/sort.md @@ -78,26 +78,36 @@ The primary API for using this plugin is the `x-sort` directive. By adding `x-so You can react to sorting changes by passing a handler function to `x-sort` and adding keys to each item using `x-sort:key`. Here is an example of a simple handler function that shows an alert dialog with the changed item's key and its new position: ```alpine -
-