Opened 12 years ago

Closed 11 years ago

#5293 closed enhancement (fixed)

Dialog: cannot modify the title property easily

Reported by: guest Owned by:
Priority: low Milestone: 1.2
Component: Dijit Version: 1.0
Keywords: Dialog Cc: justicejiang@…; freemanlong@…
Blocked By: Blocking:

Description (last modified by bill)

Hi,

I found it very difficult to modify the title of a Dialog by programe. We can only do this at the initialization process. But once it is done, you'll have no chance to make such change easily by just writing "dialog.title='A new title'" Could you make an enhancement of it so that we can use one dialog widget with different title?

Change History (4)

comment:1 Changed 12 years ago by Adam Peller

Milestone: 1.0.2

comment:2 Changed 12 years ago by bill

Milestone: 2.0

None of the widgets have a method to modify their title. Although it's easy to add such a method for Dialog, it's more complicated for things like the children of a TabContainer?, since it affects layout of parent widgets (and maybe grandparent widgets, in the case of LayoutContainer?), so we haven't addressed it yet.

In the meantime you could simply do something like

dialog.titleNode.innerHTML="hello world";

comment:3 Changed 11 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:4 Changed 11 years ago by bill

Description: modified (diff)
Milestone: 1.31.2
Resolution: fixed
Status: newclosed
Summary: Dialog cannot modified the title properties easilyDialog: cannot modify the title property easily

This works now due to all the attr() work in #7244.

dijit.byId("dialog1").attr('title', 'foo')
Note: See TracTickets for help on using tickets.