Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set default properties for widget bindings #29

Open
sammuell opened this issue Mar 4, 2014 · 0 comments
Open

Unable to set default properties for widget bindings #29

sammuell opened this issue Mar 4, 2014 · 0 comments

Comments

@sammuell
Copy link

sammuell commented Mar 4, 2014

Afaik it's not possible to set default properties for a widget binding. It's possible to set custom default values for all widget instances, but not for just those created by the ko bindings:

$.extend($.ui.dialog.prototype.options, {
  autoOpen: false,
  width: 600,
  modal: true,
  draggable: true,
  resizable: false,
  show: { effect: "fade", duration: 100 }
});

It would be handy to have access to the widgetOptions inside the preInitHandlers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant