In my opinion it’s easier and more elegant to add the missing functionality in 
a bead (e.g. DataItemRendererFactoryForICollectionViewAdvancedDataGridData ) 
rather than reproduce Flex’s class hierarchy. The only reason to do the latter 
would be to make code that depends on a particular class hierarchy (is 
operator, casting) run correctly.

My approach would be to add the functionality in a bead, but make that bead 
reusable so that it can be referenced from AdvancedListBase in case that’s 
necessary.

I hope that makes sense.

________________________________
From: Piotr Zarzycki <piotrzarzyck...@gmail.com>
Sent: Tuesday, October 22, 2019 12:48:52 PM
To: dev@royale.apache.org <dev@royale.apache.org>
Subject: Emulation of labelFunction in ADG

Hi Guys,

I'm working on fixing issue [1]. labelFunction wasn't emulated at all so
I'm trying to figure out how to add that.

I checked deeper Flex code and it looks like launching labelFunction is
starting to happen during row creation. There is
function makeRowsAndColumnsWithExtraRows in AdvancedListBase where
everything is starting.

My question is - should I go and start copying code and classes to fill
that gap or rather place launching that formatting in
DataItemRendererFactoryForICollectionViewAdvancedDataGridData
where we are creating and setup renderer ? What is the general approach.

[1] https://github.com/apache/royale-asjs/issues/472

Thanks,
--

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Reply via email to