Opened 13 years ago
Closed 13 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: | [email protected]…; [email protected]… |
Blocked By: | Blocking: |
Description (last modified by )
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 13 years ago by
Milestone: | 1.0.2 |
---|
comment:2 Changed 13 years ago by
Milestone: | → 2.0 |
---|
comment:4 Changed 13 years ago by
Description: | modified (diff) |
---|---|
Milestone: | 1.3 → 1.2 |
Resolution: | → fixed |
Status: | new → closed |
Summary: | Dialog cannot modified the title properties easily → Dialog: 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.
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