-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SortableList] Adding Properties FromListId and ToListId (#2385)
* feat: allow FluentSortableList to know where an item was dragged from and dropped to * Renamed properties * Changed example back to two lists The swapping is still handled differently (getting the list through the ids) than before. * Reverted to the previous example with added traces for the id. * Added a test to verify the Id is added to the list * Renamed the test to clarify intent * Added unit test for OnUpdate * Changed parameter names to reflect property names * Reverted changes made by the IDE --------- Co-authored-by: Denis Voituron <[email protected]>
- Loading branch information
1 parent
f8998c7
commit f8f0e5a
Showing
8 changed files
with
142 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...ore/SortableList/FluentSortableListTests.FluentSortableList_IdIsAdded.verified.razor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
<div id="list" class="fluent-sortable-list" b-0uum8h8hrq=""> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 1</div> | ||
</div> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 2</div> | ||
</div> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 3</div> | ||
</div> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 4</div> | ||
</div> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 5</div> | ||
</div> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 6</div> | ||
</div> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 7</div> | ||
</div> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 8</div> | ||
</div> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 9</div> | ||
</div> | ||
<div class="sortable-item " b-0uum8h8hrq=""> | ||
<div class="sortable-item">Item 10</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters