Ticket #5293 (closed enhancement: fixed)

Opened 12 months ago

Last modified 2 months ago

Dialog: cannot modify the title property easily

Reported by: guest Owned by:
Priority: low Milestone: 1.2
Component: Dijit Version: 1.0
Severity: minor Keywords: Dialog
Cc: justicejiang@…

Description (last modified by bill) (diff)

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

Changed 12 months ago by peller

  • milestone deleted

Changed 12 months ago by bill

  • milestone set to 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";

Changed 9 months ago by alex

  • milestone changed from 2.0 to 1.3

Milestone 2.0 deleted

Changed 2 months ago by bill

  • status changed from new to closed
  • summary changed from Dialog cannot modified the title properties easily to Dialog: cannot modify the title property easily
  • resolution set to fixed
  • description modified (diff)
  • milestone changed from 1.3 to 1.2

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.