angular-sortablejs
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -23,2 +23,5 @@ export interface SortablejsOptions { | ||
scrollSpeed?: number; | ||
preventOnFilter?: boolean; | ||
dragClass?: string; | ||
fallbackTolerance?: number; | ||
setData?: (dataTransfer: any, draggedElement: any) => any; | ||
@@ -33,2 +36,5 @@ onStart?: (event: any) => any; | ||
onMove?: (event: any) => boolean; | ||
scrollFn?: (offsetX: any, offsetY: any, originalEvent: any) => any; | ||
onChoose?: (event: any) => any; | ||
onClone?: (event: any) => any; | ||
} |
{ | ||
"name": "angular-sortablejs", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "SortableJS for Angular", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -7,3 +7,3 @@ # angular-sortablejs | ||
Angular 4.x (angular-sortablejs@2.x.x; sortablejs must be installed separately) | ||
Angular >= 4.x (angular-sortablejs@2.x.x; sortablejs must be installed separately) | ||
@@ -24,3 +24,3 @@ ```sh | ||
First, import `SortablejsModule` into the angular module where you want to use it: | ||
First, import `SortablejsModule.forRoot({ /* and here some global settings if needed */ })` into the root module of your application: | ||
@@ -30,2 +30,12 @@ ```typescript | ||
// ... | ||
SortablejsModule.forRoot({ animation: 150 }), | ||
// ... | ||
] | ||
``` | ||
Then import `SortablejsModule` into the other angular modules where you want to use it: | ||
```typescript | ||
imports: [ | ||
// ... | ||
SortablejsModule, | ||
@@ -32,0 +42,0 @@ // ... |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33274
271
239