just make a public variable in the component
I'll just expand on that a bit, but it's his answer if you consider this to be what you need.
In your custom component make a public property and name it what you want, probably dataProvider for consistency like this:
public var dataProvider:WhatYouWant;
"WhatYouWant" can be of the type you require. Make it an ArrayCollection if you want to be able to listen to the collectionChange event and perform an action when it's assigned or whenever it changes.
You can also create a public function to which you pass variable or variables that performs a function.
Lot's of ways to do this.
Ya i have made that. But it's not updating in the view. How to set the values to the custom panel component?
Actually i have provided property like following:
public function get listDataProvider():IList
public function set listDataProvider(value:IList):void
dataGroup.dataProvider = value;
But the values are not shown in the component while executinng.
For reference here am showing the image,
Am setting the same arrayCollection value to both native list and my custom panel component. But result is not shown in my custom panel component.
What i have to do to show the collection value in my custom panel component (derived from panel)?
There's a "native" way of doing that in Flex:
Try something along the lines of
protected function onDataChange(event:CollectionEvent):void
//Do stuff, refresh etc
Also, make the variable [Bindable] when you declare it.