Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#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 Changed 9 years ago by Scott González

Resolution: worksforme
Status: newclosed

Did you even try this? It already works. Just use the option method and pass a hash.

comment:2 in reply to:  1 Changed 9 years ago by Lumos

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.

comment:3 Changed 6 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.