Opened 15 years ago

Closed 15 years ago

#3777 closed enhancement (fixed)

dijit.TitlePane - No "public" toggle function

Reported by: guest Owned by: bill
Priority: high Milestone: 0.9
Component: Dijit Version: 0.9
Keywords: dijit.TitlePane Cc:
Blocked By: Blocking:


I don't find an public function to change the open state of a TitlePane? from other JavaScript?.

For now, I've been calling the TitlePane?'s _onTitleClick function to achieve this functionality, like so:

function toggleTitlePane(/* String*/ myTitlePaneId ) { dijit.byId(myTitlePaneId)._onTitleClick(); }

This works fine. However, I don't like calling functions that aren't intended to be public.

This seems like such a common task that I can't believe there isn't a public toggle function built yet.

  1. Can this be added so we can expect it in Dojo 1.0?
  2. Also, on a different note, why is dijit.TitlePane? not under dijit.layout like ContentPane? and other containers?

Change History (2)

comment:1 Changed 15 years ago by bill

Milestone: 0.9

OK, let's add a toggle() method, or maybe open() and close() methods. If we have an open() method then we have to change the "open" flag to be called something else.

As for the dijit.layout namespace, it's just for things that actually partition the screen into sections.

comment:2 Changed 15 years ago by bill

Resolution: fixed
Status: newclosed

(In [9847]) Make toggle a public function. Fixes #3777.

Note: See TracTickets for help on using tickets.