Are you looking at this link for the DataProvider class:
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses
/DataProvider.html
it shows the description of addItem() as:
addItem
addItem( value) : Void
Adds an item to the end of the array. Dispatches a modelChanged event
with eventName set to addItems.
Parameters
value - Item to add. This is a relaxed type for strings and objects.
What you have included is the ScrollSelectList.addItem() method found
at:
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses
/ScrollSelectList.html
Stephen
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of r0main
Sent: Tuesday, July 12, 2005 9:03 AM
To: [email protected]
Subject: [flexcoders] Dataprovider API documentation bug !
Is it me or the "Flex ActionScript and MXML API Reference"
Dataprovider API doc is not correct:
addItem( label, data) : Void
[...]
Returns
The added item.
r0main
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/