SwipeTrap
A SwipeTrap is a component that traps swipe actions and triggers corresponding events.
Usage
Basic
Try swipe or drag on the container:
StartX:
StartY:
DiffX:
DiffY:
---
Triggered? False
Trigger direction:
Trigger diffX:
Trigger diffY:
Panel
Open the panel and try to close it by swiping it to the left:
Title
Item1
Item2
Item3
List
Swipe each row to the right to trigger the delete action:
Delete
Item1
Delete
Item2
Delete
Item3
Delete
Item4
Delete
Item5
Delete
Item6
Delete
Item7
Delete
Item8
Delete
Item9
Delete
Item10
Advanced
An illustrative example of integrating this component into a straightforward mobile application.
bit BlazorUI
Swipe left or right
Left Menu
Item1
Item2
Item3
Right Menu
Item1
Item2
Item3
API
BitSwipeTrap parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitSwipeTrapEventArgs properties
The event arguments of the SwipeTrap events.
Name |
Type |
Default value |
Description |
---|---|---|---|
BitSwipeTrapTriggerArgs properties
The event arguments of the SwipeTrap trigger event.
Name |
Type |
Default value |
Description |
---|---|---|---|
BitSwipeDirection enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|
- On this page