Skip to main content

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")

Attachments (0)
Change History (2)

Changed March 23, 2011 01:01PM UTC by scottgonzalez comment:1

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.

Changed March 24, 2011 01:22PM UTC by Scott González comment:2

resolution: → fixed
status: newclosed

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

Changeset: 6fc98deef03b91b0ea2ed51be2708bdd2c61d479