Search and Top Navigation
#7035 closed enhancement (fixed)
Opened February 24, 2011 04:15PM UTC
Closed March 24, 2011 01:22PM UTC
Widget: Extend .option() to set partial nested options
Reported by: | jzaefferer | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.widget | Version: | 1.8.10 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This should work: .button("option", "icons.primary", "ui-whatever")
This is complicated by the fact that the widget won't know what's actually changing. Either $.Widget handles the partials and the information of what's actually happening is lost by the time it gets to the actual widget or each individual widget needs to handle the partials. Having each widget handle this would be a bit insane. Perhaps we can have $.Widget handle the partial and covert it to a full hash (mixing in the current values with the new values) and then treating it like the user changed the entire value for the top-level property.