You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Carlos Rovira <ca...@apache.org> on 2017/01/03 11:44:24 UTC
[FlexJS][Discuss] About DataGrid -> MDL Table
Hi,
just thinking in MDL Table, I want to make some research to see how to do
it....
Maybe it could be an extension of DataGrid, or it could be a List with a
item renderer with cells (many times that was the trick in old Flex SDK)
I remember reading some Peter's post about data grid saying that FlexJS
Datagrid is formed by various List synced, is that true?
So right now I want to start this thread in order to discuss and see
opinions on how is the best way to create the MDL Table component.
Thanks
--
Carlos Rovira
http://about.me/carlosrovira
Re: [FlexJS][Discuss] About DataGrid -> MDL Table
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Piotr, I see something similar. I want to check more MDL table examples
to see if there's more "data grid type" behaviour like cell editing,
ordering, or something that make hard to do this with a List. If not, I
think we could go down that path
2017-01-03 15:23 GMT+01:00 piotrz <pi...@gmail.com>:
> Carlos,
>
> I see that Table has quite similar structure from FlexJS point of view to
> Tabs.
>
> Table has THead and TBody can have multiple columns
> Tabs has TabBar and multiple TabPanel
>
> Table could be the List with itemRenderer for Row and Header. Default item
> renderer for Row will display as many columns as VO in dataProvider has.
> Header could be something which we can hide.
>
> Piotr
>
>
>
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-Discuss-About-DataGrid-MDL-Table-
> tp57815p57822.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS][Discuss] About DataGrid -> MDL Table
Posted by piotrz <pi...@gmail.com>.
Carlos,
I see that Table has quite similar structure from FlexJS point of view to
Tabs.
Table has THead and TBody can have multiple columns
Tabs has TabBar and multiple TabPanel
Table could be the List with itemRenderer for Row and Header. Default item
renderer for Row will display as many columns as VO in dataProvider has.
Header could be something which we can hide.
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Discuss-About-DataGrid-MDL-Table-tp57815p57822.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS][Discuss] About DataGrid -> MDL Table
Posted by OmPrakash Muppirala <bi...@gmail.com>.
I think for the HTML version, we should build it on top of a native Table
element. There are a lot of intricacies with grid layout and sizing that
Table already solves. We don't want to reimplement all these
functionalities in the AS3/JS layer.
Thanks,
Om
On Tue, Jan 3, 2017 at 9:34 AM, Alex Harui <ah...@adobe.com> wrote:
> IMO, Tables are not always DataGrids. Only if the cells have enough
> shared stuff to make it worth having a factory for them. A generic Table
> probably can't have a renderer. So it is fine to leverage dataProvider
> for some Tables.
>
> My 2 cents,
> -Alex
>
> On 1/3/17, 8:43 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com>
> wrote:
>
> >Thanks Peter,
> >
> >I think I'll go the List route since I think a item renderer per row would
> >be sufficient....
> >Right now we are not making the SWF version, but I think when we go that
> >route the approach would be ok as well.
> >
> >Thanks for your comments! :)
> >
> >
> >
> >2017-01-03 17:04 GMT+01:00 Peter Ent <pe...@adobe.com>:
> >
> >> Hi (back from vacation here in the US),
> >>
> >> The FlexJS html.DataGrid is indeed composed of Lists which sit inside a
> >> scrollable Viewport so they all scroll together. The DataGrid beads take
> >> care of synchronizing the selection and produce a single change event.
> >>
> >> The header is a ButtonBar. The DataGridColumn MXML elements just serve
> >>to
> >> provide information to the ButtonBar for the title of the header button
> >> and to each list so it knows which dataField to use.
> >>
> >> If the MDL work has no SWF support, and from what I can tell in this
> >> thread, the MDL Table is pretty complex (with headers, footer, body) you
> >> might opt to just do a 1:1 composition. If you don't need the SWF
> >>support
> >> then don't make it too complex.
> >>
> >> ‹peter
> >>
> >> On 1/3/17, 6:44 AM, "carlos.rovira@gmail.com on behalf of Carlos
> Rovira"
> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
> >>
> >> >Hi,
> >> >
> >> >just thinking in MDL Table, I want to make some research to see how to
> >>do
> >> >it....
> >> >
> >> >Maybe it could be an extension of DataGrid, or it could be a List with
> >>a
> >> >item renderer with cells (many times that was the trick in old Flex
> >>SDK)
> >> >
> >> >I remember reading some Peter's post about data grid saying that FlexJS
> >> >Datagrid is formed by various List synced, is that true?
> >> >
> >> >So right now I want to start this thread in order to discuss and see
> >> >opinions on how is the best way to create the MDL Table component.
> >> >
> >> >Thanks
> >> >
> >> >--
> >> >Carlos Rovira
> >> >http://about.me/carlosrovira
> >>
> >>
> >
> >
> >--
> >
> >Carlos Rovira
> >Director General
> >M: +34 607 22 60 05
> >http://www.codeoscopic.com
> >http://www.avant2.es
> >
> >Este mensaje se dirige exclusivamente a su destinatario y puede contener
> >información privilegiada o confidencial. Si ha recibido este mensaje por
> >error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> >proceda a su destrucción.
> >
> >De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >comunicamos
> >que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> >S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >servicio o información solicitados, teniendo usted derecho de acceso,
> >rectificación, cancelación y oposición de sus datos dirigiéndose a
> >nuestras
> >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> >necesaria.
>
>
Re: [FlexJS][Discuss] About DataGrid -> MDL Table
Posted by Alex Harui <ah...@adobe.com>.
IMO, Tables are not always DataGrids. Only if the cells have enough
shared stuff to make it worth having a factory for them. A generic Table
probably can't have a renderer. So it is fine to leverage dataProvider
for some Tables.
My 2 cents,
-Alex
On 1/3/17, 8:43 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com> wrote:
>Thanks Peter,
>
>I think I'll go the List route since I think a item renderer per row would
>be sufficient....
>Right now we are not making the SWF version, but I think when we go that
>route the approach would be ok as well.
>
>Thanks for your comments! :)
>
>
>
>2017-01-03 17:04 GMT+01:00 Peter Ent <pe...@adobe.com>:
>
>> Hi (back from vacation here in the US),
>>
>> The FlexJS html.DataGrid is indeed composed of Lists which sit inside a
>> scrollable Viewport so they all scroll together. The DataGrid beads take
>> care of synchronizing the selection and produce a single change event.
>>
>> The header is a ButtonBar. The DataGridColumn MXML elements just serve
>>to
>> provide information to the ButtonBar for the title of the header button
>> and to each list so it knows which dataField to use.
>>
>> If the MDL work has no SWF support, and from what I can tell in this
>> thread, the MDL Table is pretty complex (with headers, footer, body) you
>> might opt to just do a 1:1 composition. If you don't need the SWF
>>support
>> then don't make it too complex.
>>
>> ‹peter
>>
>> On 1/3/17, 6:44 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
>> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>>
>> >Hi,
>> >
>> >just thinking in MDL Table, I want to make some research to see how to
>>do
>> >it....
>> >
>> >Maybe it could be an extension of DataGrid, or it could be a List with
>>a
>> >item renderer with cells (many times that was the trick in old Flex
>>SDK)
>> >
>> >I remember reading some Peter's post about data grid saying that FlexJS
>> >Datagrid is formed by various List synced, is that true?
>> >
>> >So right now I want to start this thread in order to discuss and see
>> >opinions on how is the best way to create the MDL Table component.
>> >
>> >Thanks
>> >
>> >--
>> >Carlos Rovira
>> >http://about.me/carlosrovira
>>
>>
>
>
>--
>
>Carlos Rovira
>Director General
>M: +34 607 22 60 05
>http://www.codeoscopic.com
>http://www.avant2.es
>
>Este mensaje se dirige exclusivamente a su destinatario y puede contener
>información privilegiada o confidencial. Si ha recibido este mensaje por
>error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
>proceda a su destrucción.
>
>De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>comunicamos
>que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>servicio o información solicitados, teniendo usted derecho de acceso,
>rectificación, cancelación y oposición de sus datos dirigiéndose a
>nuestras
>oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>necesaria.
Re: [FlexJS][Discuss] About DataGrid -> MDL Table
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Thanks Peter,
I think I'll go the List route since I think a item renderer per row would
be sufficient....
Right now we are not making the SWF version, but I think when we go that
route the approach would be ok as well.
Thanks for your comments! :)
2017-01-03 17:04 GMT+01:00 Peter Ent <pe...@adobe.com>:
> Hi (back from vacation here in the US),
>
> The FlexJS html.DataGrid is indeed composed of Lists which sit inside a
> scrollable Viewport so they all scroll together. The DataGrid beads take
> care of synchronizing the selection and produce a single change event.
>
> The header is a ButtonBar. The DataGridColumn MXML elements just serve to
> provide information to the ButtonBar for the title of the header button
> and to each list so it knows which dataField to use.
>
> If the MDL work has no SWF support, and from what I can tell in this
> thread, the MDL Table is pretty complex (with headers, footer, body) you
> might opt to just do a 1:1 composition. If you don't need the SWF support
> then don't make it too complex.
>
> ‹peter
>
> On 1/3/17, 6:44 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>
> >Hi,
> >
> >just thinking in MDL Table, I want to make some research to see how to do
> >it....
> >
> >Maybe it could be an extension of DataGrid, or it could be a List with a
> >item renderer with cells (many times that was the trick in old Flex SDK)
> >
> >I remember reading some Peter's post about data grid saying that FlexJS
> >Datagrid is formed by various List synced, is that true?
> >
> >So right now I want to start this thread in order to discuss and see
> >opinions on how is the best way to create the MDL Table component.
> >
> >Thanks
> >
> >--
> >Carlos Rovira
> >http://about.me/carlosrovira
>
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS][Discuss] About DataGrid -> MDL Table
Posted by Peter Ent <pe...@adobe.com>.
Hi (back from vacation here in the US),
The FlexJS html.DataGrid is indeed composed of Lists which sit inside a
scrollable Viewport so they all scroll together. The DataGrid beads take
care of synchronizing the selection and produce a single change event.
The header is a ButtonBar. The DataGridColumn MXML elements just serve to
provide information to the ButtonBar for the title of the header button
and to each list so it knows which dataField to use.
If the MDL work has no SWF support, and from what I can tell in this
thread, the MDL Table is pretty complex (with headers, footer, body) you
might opt to just do a 1:1 composition. If you don't need the SWF support
then don't make it too complex.
‹peter
On 1/3/17, 6:44 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>Hi,
>
>just thinking in MDL Table, I want to make some research to see how to do
>it....
>
>Maybe it could be an extension of DataGrid, or it could be a List with a
>item renderer with cells (many times that was the trick in old Flex SDK)
>
>I remember reading some Peter's post about data grid saying that FlexJS
>Datagrid is formed by various List synced, is that true?
>
>So right now I want to start this thread in order to discuss and see
>opinions on how is the best way to create the MDL Table component.
>
>Thanks
>
>--
>Carlos Rovira
>http://about.me/carlosrovira