I will file the bug. Thanks, Kevin
On Dec 13, 2007, at 10:45 AM, Alex Harui wrote:
Dang, I never noticed that before. Please file a bug. It probably
won’t get in Flex 3 though.
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Sent: Thursday, December 13, 2007 7:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataTipFunction doesn't seem to make sense?
Is it just me or do others think that the dataTipFunction doesn't
really fit within the "label function" framework? I don't see why it
isn't formatted like the labelFunction so that we could use those two
functions interchangeably our app?
For example, I created a bunch of standard Date formatters that take
the "item" & "column" parameters and return a formatted date string.
Each method returns the date formatted in a different way. However,
I can't use these for dataTips since the dataTipFunction doesn't send
the column parameter. Therefore if I have a DataGrid that I want the
date in the column to appear one way and the data tip to be the same
date in a different format, I have to create a new set of functions
for my the dataTip AND the are pretty much useful only to one type of
object since I have to hard code the parameter that I want formatted.
I am wondering why these label function method signatures wouldn't be
formated the same way so that we can write general functions and use
them across our application. Am I missing something OR is there a
way to pass additional parameters to a label function that I don't
know about?
- Kevin