You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, I can verify that these properties are being bound. I can see the window title, for instance, and the width and height is set appropriately when binding first occurs. After that, moving the dialogs and/or resizing them is not reflected in the bound objects. Any suggestions?
The text was updated successfully, but these errors were encountered:
These options are bound one-way (viewmodel -> dialog widget). If the viewmodel's property changes then the dialog's option will be also updated, but not the other way around. The dialog binding's only option which is bound 2-way is the isOpen option.
Making the width and height two-way is simple. The binding could handle the widget's resizeStop event and update the viewmodel when the size changes.
Making the position option two-way is harder. The widget raises the dragStop event when the dialog's position changes, but the position object's complexity make it hard to update.
Anyway, thanks for this bug report/feature request! I will definitely implement these.
I've got a div with the following data-bind set up (outer tag redacted because I couldn't get it to show with markdown without a fight):
'''
data-bind="dialog: {resizable: true, title: windowTitle, width: width, height: height, position: position }"
'''
I have a number of the following javascript objects bound to the documentWindow class div shown above:
'''
var windowManager = function (options) {
var self = this;
'''
Now, I can verify that these properties are being bound. I can see the window title, for instance, and the width and height is set appropriately when binding first occurs. After that, moving the dialogs and/or resizing them is not reflected in the bound objects. Any suggestions?
The text was updated successfully, but these errors were encountered: