angular-gridster2
Advanced tools
Comparing version 1.15.2 to 1.16.0
{ | ||
"name": "angular-gridster2", | ||
"version": "1.15.2", | ||
"version": "1.16.0", | ||
"main": "index.js", | ||
@@ -14,3 +14,3 @@ "dependencies": { | ||
"browser-sync-spa": "1.0.3", | ||
"chalk": "2.2.0", | ||
"chalk": "2.3.0", | ||
"del": "3.0.0", | ||
@@ -34,3 +34,3 @@ "eslint-plugin-angular": "3.1.1", | ||
"gulp-replace": "0.6.1", | ||
"gulp-rev": "8.0.0", | ||
"gulp-rev": "8.1.0", | ||
"gulp-rev-replace": "0.4.3", | ||
@@ -50,3 +50,3 @@ "gulp-size": "2.1.0", | ||
"lodash": "4.17.4", | ||
"phantomjs-prebuilt": "2.1.15", | ||
"phantomjs-prebuilt": "2.1.16", | ||
"uglify-save-license": "0.4.1", | ||
@@ -53,0 +53,0 @@ "wrench": "1.5.9" |
@@ -153,2 +153,16 @@ angular-gridster2 | ||
this.options.api.getNextPossiblePosition(item: GridsterItem); // call to get a viable position for item. Returns true if found | ||
// if you want to push items from code use the GridsterPush service | ||
import {GridsterItemComponent, GridsterPush, GridsterPushResize, GridsterSwap} from 'gridster' | ||
myMethod(gridsterItemComponent: GridsterItemComponent) { | ||
const push = new GridsterPush(gridsterItemComponent); // init the service | ||
gridsterItemComponent.$item.rows += 1; // move your item | ||
push.pushItems(push.fromEast); // push items from a direction | ||
push.setPushedItems(); // save the items pushed | ||
push.restoreItems(); // restore to initial state the pushed items | ||
push.checkPushBack(); // check for items restore to original position | ||
// same for GridsterPushResize and GridsterSwap | ||
} | ||
``` | ||
@@ -155,0 +169,0 @@ |
Sorry, the diff of this file is too big to display
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
108311
2378
225