#5424 closed enhancement (worksforme)
Options after initialisation
Reported by: | Lumos | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.dialog | Version: | 1.8 |
Keywords: | options, init | Cc: | |
Blocked by: | Blocking: |
Description
As i see after init we may reset option by
obj.dialog('option', 'title', 'Lorem ipsum');
What if there a lot of options?
obj.dialog('option', 'title', 'Lorem ipsum'); obj.dialog('option', 'modal', true); obj.dialog('option', height, 400);
Would it better to do as below
obj.dialog('options', {title: 'Lorem ipsum', modal: true, height: 400});
it's quire trivial to make and pretty useful imho.
Thanks, Nik.
Change History (3)
comment:1 follow-up: 2 Changed 11 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
Replying to scott.gonzalez:
Did you even try this? It already works. Just use the option method and pass a hash.
Is it documented?
.dialog( "option" , optionName , [value] ) Get or set any dialog option. If no value is specified, will act as a getter.
Note: See
TracTickets for help on using
tickets.
Did you even try this? It already works. Just use the option method and pass a hash.