royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Zarzycki <>
Subject Re: [Royale] DataGrid default configuration proposal
Date Wed, 17 Jan 2018 21:07:44 GMT
Hi Peter,

To me it is a good change. I was always wondering why DG is working with
ArrayList default. However let's say that I wanted to switch some of the
beads for that DataGrid or add some custom class. How am I supposed to add
second css class ?

If I have this: <js:DataGrid className="DynamicDataGrid"> and I have
something in my css file .myAdditionalClass {  }. Will it work ?

<js:DataGrid className="DynamicDataGrid myAdditionalClass">

Thanks, Piotr

2018-01-17 20:58 GMT+01:00 Alex Harui <>:

> IMO, the DataGrid in Basic should work with Arrays and a different set of
> beads allow it to work with ArrayList and another set of beads provides
> detection of changes to the ArrayList.  As long as we have those beads
> (and maybe some tests/examples to prove it all works), the default set of
> beads is less important. That decision should be driven by users and maybe
> by us if there is some other goal we want to hit (like making an example
> be smaller than some number of bytes.
> If you are going to create a style definition of DynamicDataGrid should
> also create a DynamicDataGrid class that packs in the required set of
> beads.
> The DataGrid in Express will likely evolve to pack a set of beads that
> don't care if the data provider is an Array or ArrayList.  For now it can
> just assume ArrayList.
> My 2 cents,
> -Alex
> On 1/17/18, 11:43 AM, "Peter Ent" <> wrote:
> >Hi,
> >
> >I'm proposing a change to DataGrid default configuration. Right now
> >DataGrid is designed to work with ArrayList; its does not work with
> >Array. I propose that the default configuration for DataGrid is to use
> >Array as its dataProvider and provide no dynamic abilities.
> >
> >We would include in the defaults.css a style definition,
> >DynamicDataGrid, which would set up DataGrid to use the more dynamic
> >ICollectionView set of beads. When items were added or removed from the
> >dataProvider, the grid would automatically reflect the change.
> >
> >Doing this would provide a better PAYG experience. Or do you think
> >DataGrid is too advanced to bother with Array at all?
> >
> ><js:DataGrid> would require its dataProvider be an Array.
> ><js:DataGrid className="DynamicDataGrid"> would require its dataProvider
> >be ArrayList (or any thing that implements ICollectionView).
> >
> >What do you think? Should DataGrid's default configuration work with
> >Array and then use PAYG to upgrade it to more dynamic components if
> >that's what the developer wants?
> >
> >One more thing: the List's default configuration uses Array and you have
> >to add dynamic beads if you want it to respond to changes. I would also
> >add a "DynamicList" style to make it easier to do that. This way there is
> >consistency between List and DataGrid.
> >
> ><js:List> would require its dataProvider to be an Array.
> ><js:List className="DynamicList"> would require its dataProvider to be
> >ArrayList (or any thing that implements ICollectionView).
> >
> >Thanks,
> >Peter
> >
> >


Piotr Zarzycki

Patreon: *

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message