Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #104338
    Andreas Boos
    Participant

    Hi,

     

    I’m trying to call a simple addTask for my kanban, passing nothing and some data as arguments but I receive:

    Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘value’)

    at t.updateProperty
    at BaseElement.set
    at BaseElement.addTask
    at BaseElement.r

    If I pass values, using, for example, the getKanbanData example, on the creation of object: works fine.

    Debugging I can see the smart-kanban object and all properties and so.

     

    Other question: Can I pass a full object array with data directly to kanban.properties.dataSource any time?

    Thank you

    • This topic was modified 1 year, 2 months ago by Andreas Boos.
    #104340

    Hi,

    What exactly you are passing to the addTask method?
    Yes, you can change the dataSource at any time.

    Please, share your code for adding a task

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

    #104367
    Andreas Boos
    Participant

    Sorry for that. I was trying to change dataSource property in: kanban.properties.dataSource. After update the right property work properly.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.