Opened 12 years ago

Closed 12 years ago

#7035 closed enhancement (fixed)

Widget: Extend .option() to set partial nested options

Reported by: Jörn Zaefferer Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.widget Version: 1.8.10
Keywords: Cc:
Blocked by: Blocking:


This should work: .button("option", "icons.primary", "ui-whatever")

Change History (2)

comment:1 Changed 12 years ago by Scott González

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.

comment:2 Changed 12 years ago by Scott González

Resolution: fixed
Status: newclosed

Widget: Allow setting individual properties of deep options. Fixes #7035 - Widget: Extend .option() to set partial nested options.

Changeset: 6fc98deef03b91b0ea2ed51be2708bdd2c61d479

Note: See TracTickets for help on using tickets.