Comments (5)
Do you have "angular2gridster" in your package dependencies?
The source of the problem with error item.setPositionsOnItem is not a function angular2gridster
is your own method itemChange
implemented in the app.component.ts.
If you want to to call setPositionsOnItem
you should do it as follows: item.itemComponent.setPositionsOnItem();
.
Change will fix this issue but other will be thrown becuase of setting the item position to null in your code.
from angular2gridster.
Do you have "angular2gridster" in your package dependencies?
The source of the problem with erroritem.setPositionsOnItem is not a function angular2gridster
is your own methoditemChange
implemented in the app.component.ts.
If you want to to callsetPositionsOnItem
you should do it as follows:item.itemComponent.setPositionsOnItem();
.
Change will fix this issue but other will be thrown becuase of setting the item position to null in your code.
Hi,
Thank you for responding back. Correct now getting errors for null. The only requirement that i am having is to create dynamic widget and those can be drag and dropped. Can you please share one angular app which is working correctly with basic functionality which is there in the demo. Rest all other things i have seen in the code. Downloaded code is also not working i guess because of custom library which is there in the project.
Regards,
Amit
from angular2gridster.
Do you have "angular2gridster" in your package dependencies?
The source of the problem with erroritem.setPositionsOnItem is not a function angular2gridster
is your own methoditemChange
implemented in the app.component.ts.
If you want to to callsetPositionsOnItem
you should do it as follows:item.itemComponent.setPositionsOnItem();
.
Change will fix this issue but other will be thrown becuase of setting the item position to null in your code.Hi,
Thank you for responding back. Correct now getting errors for null. The only requirement that i am having is to create dynamic widget and those can be drag and dropped. Can you please share one angular app which is working correctly with basic functionality which is there in the demo. Rest all other things i have seen in the code. Downloaded code is also not working i guess because of custom library which is there in the project.
Regards,
Amit
Hi,
Issue is resolved now. Thank you for your help. Appreciated. Will get back if again need your help.
from angular2gridster.
Hi,
Can we store(in database) the widget order with id after user do changes with order of widgets. So that when same user again login we can show the widget in same order.
Regards,
Amit
from angular2gridster.
You can use the change
event on the ngx-gridster-item
component to notify the server about the times' positions change.
More info: https://github.com/swiety85/angular2gridster/wiki/API-Documentation#outputs-1
from angular2gridster.
Related Issues (20)
- emitter for currently selected or clicked or active gridster item
- ERROR on creating gridster inside mat tab group
- reloading grids sometimes makes heights size 1
- Provide service using { providedIn: 'root' } HOT 1
- Error when deploying angular 9 app to dev server (My bad)
- Angular 11 support HOT 2
- Angular 12 Support? HOT 1
- How to load the grid without dragAndDrop and Resize
- widget width not increase, need help
- When I use draggableOptions,I think have an ignoreContentClass option maybe is better?
- Angular 13 support HOT 1
- Can't bind to config
- Fix peerDependencies HOT 4
- Question: Is this project abandoned?
- Resizing from the top does not update the position until finished.
- Resizing does not correctly scroll when the scroll container is the body
- Focus and reading order is not as per the visual order
- Clicking and dragging the horizontal/vertical scroll bar no longer works
- There is a minute gap between 2 gridster Item even though margin set as zero and the gap is not consistent in all the items. How to resolve this gap issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2gridster.