I am currently working with an object that serves as a representation of the div element
function ElementVM
{
var self = this;
self.Height = ko.observable();
self.Width = ko.observable();
self.Bottom = ko.observable();
}
and I want to connect this object to
<div data-bind="style:{ height: Height, width: Width, bottom: Bottom, position: 'absolute' }">
However, my issue arises when dragging this div element which is set to be draggable as it does not update the values of my ElementVM object.
Have you encountered this problem before and do you have any insights on how the binding should be implemented?
Your assistance is greatly appreciated.