Package Exports
- @dreamworld/dw-swipeable
- @dreamworld/dw-swipeable/dw-swipeable.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dreamworld/dw-swipeable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dw-swipeable
A Material UI component to perform some action on swipe-left or swipe-right
Usage
- Import
import '@dreamworld/dw-swipeable';- Use
<dw-swipeable
@action=${this._onAction}
.leftAction="${{left: {name: 'DELETE', caption: 'Delete', icon: 'delete'}}",
.rightAction="${{name: 'DELETE', caption: 'Delete'} }" >
<div>Content Here</div>
</dw-swipeable>CSS Properties
| Name | Description |
|---|---|
--swipe-left-placeholder-color |
Text color of left action placeholder. |
--swipe-left-placeholder-bg-color |
Background color of left action placeholder |
--swipe-right-placeholder-color |
Text color of right action placeholder. |
--swipe-right-placeholder-bg-color |
Background color of right action placeholder |
--swipe-content-bg-color |
Background color of content |