Ticket #4784 (closed enhancement: fixed)
Widget factory: Allow multiple option arguments on init
| Reported by: | joern.zaefferer | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.8 |
| Component: | ui.core | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The widget factory should extended to merge multiple option arguments on init together into one. That would enable mixins ala:
{{{$(...).autocomplete($.autocomplete.fromSelect, {
custom stuff for this one
});}}}
Where a preconfigured set of options can be stored seperate from a plugin, and when used being further customized.
Attached is a testcase.
Attachments
Change History
Changed 4 years ago by joern.zaefferer
-
attachment
multiple-options-test.diff
added
Note: See
TracTickets for help on using
tickets.


Test