Giter VIP home page Giter VIP logo

Comments (5)

swiety85 avatar swiety85 commented on June 20, 2024

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.

amitkpal83 avatar amitkpal83 commented on June 20, 2024

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.

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.

amitkpal83 avatar amitkpal83 commented on June 20, 2024

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.

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.

amitkpal83 avatar amitkpal83 commented on June 20, 2024

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.

swiety85 avatar swiety85 commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.