Search and Top Navigation
#5424 closed enhancement (worksforme)
Opened March 25, 2010 08:37AM UTC
Closed March 26, 2010 01:17AM UTC
Last modified October 11, 2012 09:15PM UTC
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.
Attachments (0)
Change History (3)
Changed March 26, 2010 01:17AM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
Changed March 27, 2010 07:51AM UTC by comment:2
Replying to [comment:1 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.
Changed October 11, 2012 09:15PM UTC by comment:3
milestone: | TBD |
---|
Milestone TBD deleted
Did you even try this? It already works. Just use the option method and pass a hash.