Opened 15 years ago

Closed 15 years ago

#2241 closed defect (invalid)

ColorPalette onColorSelect event reporting: how???

Reported by: [email protected] Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:


This may or may not be a bug, but it seems to be:

i can't, for the life of me, figure out how to get the palette to report the color selection back to my client code without actually editing the definition of onColorSelect in the ColorPalette? sources. i've tried, e.g.:

dojo.widget.ColorPalette?.onColorSelect = function(color) {



after loading ColorPalette?, but this does nothing. i would recommend putting an example of how to do this in the source code for the demo version of the ColorPalette?.

i am using the version of dojo checked out from SVN today (about 3 hours ago). (i was confused by all of the "profile" downloads and wasn't sure what i needed, so i grabbed the latest tree.)

Change History (2)

comment:1 Changed 15 years ago by [email protected]

Sorry, this report is bogus. i figured out that i have to use dojo.event.connect to map my handler to the ColorPalette?. However, i recommend demonstrating this on the dojo Demo page with a simple alert(color) handler.

comment:2 Changed 15 years ago by bill

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.