You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a RxJS observable that streams all of Dragster's events.
148
148
149
149
### `destroy(): void`
150
-
Removes all drag and drop events used by Dragster to manage drag and drop between the containers. If `destroy()` is called while an element is being dragged, the drag will be effectively cancelled.
150
+
Removes all drag and drop events used by Dragster to manage drag and drop between the containers. If `destroy()` is called while an element is being dragged, the drag will be effectively cancelled.
151
+
152
+
## Replacing Dragula with Dragster
153
+
154
+
To replace dragula with Dragster, just remove dragula's JS and CSS files and add `docs/dragster.min.js`. If you are using npm, add Dragster using:
155
+
156
+
`npm install --save dragster.js`
157
+
158
+
Dragster will work out-of-the-box, since it interfaces dragula. Therefore, your existing `dragula()` calls will work as-is.
159
+
160
+
```typescript
161
+
import {dragula} from'dragster.js';
162
+
163
+
// drake will be instanceof Dragster
164
+
let drake =dragula([document.getElementById('left'), document.getElementById('right')]);
0 commit comments