Opened 13 years ago

Closed 13 years ago

#2241 closed defect (invalid)

ColorPalette onColorSelect event reporting: how???

Reported by: stephan@… Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

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

http://dojotoolkit.org/api/?#dojo.widget.ColorPalette

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) {

alert(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 13 years ago by stephan@…

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 13 years ago by bill

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