Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Table component and example initial implementation

2017-01-14 Thread Carlos Rovira
So we have now the Table component finished :)

This code:












outputs this: https://getmdl.io/components/index.html#tables-section

I'll try some enhancements like to have a "dataField" in column like in
DataGrid so we can filter columns or reorder.
As well there's a support in MDL for column ascending and descending, but
although the visuales are available through the flexjs table component,
don't know yet how it works (I'll try to check some examples out there and
see if we can introduce a click event or something like that)

as well It would be great to make the basic TableRowItemRenderer output all
row info, so the basic table with the basic IR could be used in a very
basic way :)



2017-01-14 0:45 GMT+01:00 Carlos Rovira :

> Yeah! :)
>
> 2017-01-13 20:43 GMT+01:00 Piotr Zarzycki :
>
>> Love this commit :)
>>
>> On Fri, Jan 13, 2017, 20:34  wrote:
>>
>> > Repository: flex-asjs
>> > Updated Branches:
>> >   refs/heads/develop 2e52060f3 -> b0b41aefe
>> >
>> >
>> > MDL Table component and example initial implementation
>> >
>> >
>> > Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
>> > Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b0b4
>> 1aef
>> > Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b0b41aef
>> > Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b0b41aef
>> >
>> > Branch: refs/heads/develop
>> > Commit: b0b41aefe2a419d310c010299430ba56bf87d974
>> > Parents: 2e52060
>> > Author: Carlos Rovira 
>> > Authored: Fri Jan 13 20:34:17 2017 +0100
>> > Committer: Carlos Rovira 
>> > Committed: Fri Jan 13 20:34:17 2017 +0100
>> >
>> > --
>> >  .../src/main/flex/MainNavigation.mxml   |   1 +
>> >  .../flexjs/MDLExample/src/main/flex/Tables.mxml |  41 ++
>> >  .../src/main/flex/models/MainNavigationModel.as |   1 +
>> >  .../src/main/flex/models/TablesModel.as |  41 ++
>> >  .../MDLExample/src/main/flex/vos/MaterialVO.as  |  35 +
>> >  .../main/flex/org/apache/flex/mdl/Navigation.as |   2 +-
>> >  .../src/main/flex/org/apache/flex/mdl/Table.as  |  30 ++--
>> >  .../flex/mdl/itemRenderers/TableItemRenderer.as | 145
>> +++
>> >  .../src/main/resources/defaults.css |  10 ++
>> >  .../src/main/resources/mdl-manifest.xml |   2 +
>> >  10 files changed, 293 insertions(+), 15 deletions(-)
>> > --
>> >
>> >
>> >
>> > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41a
>> ef/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
>> > --
>> > diff --git a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mx
>> ml
>> > b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
>> > index f056f18..a2414b8 100644
>> > --- a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
>> > +++ b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
>> > @@ -74,6 +74,7 @@ limitations under the License.
>> >  
>> >  
>> >  
>> > +
>> >  
>> >  
>> >  
>> >
>> >
>> > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41a
>> ef/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
>> > --
>> > diff --git a/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
>> > b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
>> > new file mode 100644
>> > index 000..a5591d7
>> > --- /dev/null
>> > +++ b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
>> > @@ -0,0 +1,41 @@
>> > +
>> > +
>> > +http://ns.adobe.com/mxml/2009";
>> > + xmlns:js="library://ns.apache.org/flexjs/basic"
>> > + xmlns:mdl="library://ns.apache.org/flexjs/mdl"
>> > + xmlns="http://www.w3.org/1999/xhtml";
>> > + xmlns:models="models.*">
>> > +
>> > +
>> > +
>> > +   
>> > +
>> > +
>> > +
>> > +
>> > +> > +sourceID="model"
>> > +sourcePropertyName="materials"
>> > +destinationPropertyName="dataProvider" />
>> > +
>> > +
>> > +
>> > +
>> > +
>> > \ No newline at end of file
>> >
>> >
>> > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41a
>> ef/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
>> > --
>> > diff --git
>> > a/examples/flexjs/MDLExample/src/main/flex/models/MainNaviga
>> tionModel.as
>> > b/examples/flexjs/MDLExample/src/main/flex/models/MainNaviga
>> tionModel.as
>> > index 5330ae4..12fbbf3 100644
>> > ---
>> > a/examples/flexjs/MDLExample/

Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Table component and example initial implementation

2017-01-13 Thread Carlos Rovira
Yeah! :)

2017-01-13 20:43 GMT+01:00 Piotr Zarzycki :

> Love this commit :)
>
> On Fri, Jan 13, 2017, 20:34  wrote:
>
> > Repository: flex-asjs
> > Updated Branches:
> >   refs/heads/develop 2e52060f3 -> b0b41aefe
> >
> >
> > MDL Table component and example initial implementation
> >
> >
> > Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
> > Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b0b41aef
> > Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b0b41aef
> > Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b0b41aef
> >
> > Branch: refs/heads/develop
> > Commit: b0b41aefe2a419d310c010299430ba56bf87d974
> > Parents: 2e52060
> > Author: Carlos Rovira 
> > Authored: Fri Jan 13 20:34:17 2017 +0100
> > Committer: Carlos Rovira 
> > Committed: Fri Jan 13 20:34:17 2017 +0100
> >
> > --
> >  .../src/main/flex/MainNavigation.mxml   |   1 +
> >  .../flexjs/MDLExample/src/main/flex/Tables.mxml |  41 ++
> >  .../src/main/flex/models/MainNavigationModel.as |   1 +
> >  .../src/main/flex/models/TablesModel.as |  41 ++
> >  .../MDLExample/src/main/flex/vos/MaterialVO.as  |  35 +
> >  .../main/flex/org/apache/flex/mdl/Navigation.as |   2 +-
> >  .../src/main/flex/org/apache/flex/mdl/Table.as  |  30 ++--
> >  .../flex/mdl/itemRenderers/TableItemRenderer.as | 145
> +++
> >  .../src/main/resources/defaults.css |  10 ++
> >  .../src/main/resources/mdl-manifest.xml |   2 +
> >  10 files changed, 293 insertions(+), 15 deletions(-)
> > --
> >
> >
> >
> > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/
> b0b41aef/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
> > --
> > diff --git a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.
> mxml
> > b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
> > index f056f18..a2414b8 100644
> > --- a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
> > +++ b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
> > @@ -74,6 +74,7 @@ limitations under the License.
> >  
> >  
> >  
> > +
> >  
> >  
> >  
> >
> >
> > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/
> b0b41aef/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
> > --
> > diff --git a/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
> > b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
> > new file mode 100644
> > index 000..a5591d7
> > --- /dev/null
> > +++ b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
> > @@ -0,0 +1,41 @@
> > +
> > +
> > +http://ns.adobe.com/mxml/2009";
> > + xmlns:js="library://ns.apache.org/flexjs/basic"
> > + xmlns:mdl="library://ns.apache.org/flexjs/mdl"
> > + xmlns="http://www.w3.org/1999/xhtml";
> > + xmlns:models="models.*">
> > +
> > +
> > +
> > +   
> > +
> > +
> > +
> > +
> > + > +sourceID="model"
> > +sourcePropertyName="materials"
> > +destinationPropertyName="dataProvider" />
> > +
> > +
> > +
> > +
> > +
> > \ No newline at end of file
> >
> >
> > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/
> b0b41aef/examples/flexjs/MDLExample/src/main/flex/
> models/MainNavigationModel.as
> > --
> > diff --git
> > a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
> > b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
> > index 5330ae4..12fbbf3 100644
> > ---
> > a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
> > +++
> > b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
> > @@ -63,6 +63,7 @@ package models
> >  new NavigationLinkVO("Snackbar", "snackbar_panel"),
> >  new NavigationLinkVO("Toggles", "toggles_panel"),
> >  new NavigationLinkVO("Lists", "lists_panel"),
> > +new NavigationLinkVO("Tables", "tables_panel"),
> >  new NavigationLinkVO("Loading", "loading_panel"),
> >  new NavigationLinkVO("Menu", "menus_panel"),
> >  new NavigationLinkVO("Badges", "badges_panel"),
> >
> >
> > http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/
> b0b41aef/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
> > --
> > diff --git
> > a/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
> > b/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.a

Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Table component and example initial implementation

2017-01-13 Thread Piotr Zarzycki
Love this commit :)

On Fri, Jan 13, 2017, 20:34  wrote:

> Repository: flex-asjs
> Updated Branches:
>   refs/heads/develop 2e52060f3 -> b0b41aefe
>
>
> MDL Table component and example initial implementation
>
>
> Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
> Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b0b41aef
> Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b0b41aef
> Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b0b41aef
>
> Branch: refs/heads/develop
> Commit: b0b41aefe2a419d310c010299430ba56bf87d974
> Parents: 2e52060
> Author: Carlos Rovira 
> Authored: Fri Jan 13 20:34:17 2017 +0100
> Committer: Carlos Rovira 
> Committed: Fri Jan 13 20:34:17 2017 +0100
>
> --
>  .../src/main/flex/MainNavigation.mxml   |   1 +
>  .../flexjs/MDLExample/src/main/flex/Tables.mxml |  41 ++
>  .../src/main/flex/models/MainNavigationModel.as |   1 +
>  .../src/main/flex/models/TablesModel.as |  41 ++
>  .../MDLExample/src/main/flex/vos/MaterialVO.as  |  35 +
>  .../main/flex/org/apache/flex/mdl/Navigation.as |   2 +-
>  .../src/main/flex/org/apache/flex/mdl/Table.as  |  30 ++--
>  .../flex/mdl/itemRenderers/TableItemRenderer.as | 145 +++
>  .../src/main/resources/defaults.css |  10 ++
>  .../src/main/resources/mdl-manifest.xml |   2 +
>  10 files changed, 293 insertions(+), 15 deletions(-)
> --
>
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41aef/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
> --
> diff --git a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
> b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
> index f056f18..a2414b8 100644
> --- a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
> +++ b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
> @@ -74,6 +74,7 @@ limitations under the License.
>  
>  
>  
> +
>  
>  
>  
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41aef/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
> --
> diff --git a/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
> b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
> new file mode 100644
> index 000..a5591d7
> --- /dev/null
> +++ b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
> @@ -0,0 +1,41 @@
> +
> +
> +http://ns.adobe.com/mxml/2009";
> + xmlns:js="library://ns.apache.org/flexjs/basic"
> + xmlns:mdl="library://ns.apache.org/flexjs/mdl"
> + xmlns="http://www.w3.org/1999/xhtml";
> + xmlns:models="models.*">
> +
> +
> +
> +   
> +
> +
> +
> +
> + +sourceID="model"
> +sourcePropertyName="materials"
> +destinationPropertyName="dataProvider" />
> +
> +
> +
> +
> +
> \ No newline at end of file
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41aef/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
> --
> diff --git
> a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
> b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
> index 5330ae4..12fbbf3 100644
> ---
> a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
> +++
> b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
> @@ -63,6 +63,7 @@ package models
>  new NavigationLinkVO("Snackbar", "snackbar_panel"),
>  new NavigationLinkVO("Toggles", "toggles_panel"),
>  new NavigationLinkVO("Lists", "lists_panel"),
> +new NavigationLinkVO("Tables", "tables_panel"),
>  new NavigationLinkVO("Loading", "loading_panel"),
>  new NavigationLinkVO("Menu", "menus_panel"),
>  new NavigationLinkVO("Badges", "badges_panel"),
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41aef/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
> --
> diff --git
> a/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
> b/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
> new file mode 100644
> index 000..19e355e
> --- /dev/null
> +++ b/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
> @@ -0,0 +1,41 @@
>
> +
> +//
> +//  Licensed to the Apache Software Foundation (ASF) under o

git commit: [flex-asjs] [refs/heads/develop] - MDL Table component and example initial implementation

2017-01-13 Thread carlosrovira
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 2e52060f3 -> b0b41aefe


MDL Table component and example initial implementation


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b0b41aef
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b0b41aef
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b0b41aef

Branch: refs/heads/develop
Commit: b0b41aefe2a419d310c010299430ba56bf87d974
Parents: 2e52060
Author: Carlos Rovira 
Authored: Fri Jan 13 20:34:17 2017 +0100
Committer: Carlos Rovira 
Committed: Fri Jan 13 20:34:17 2017 +0100

--
 .../src/main/flex/MainNavigation.mxml   |   1 +
 .../flexjs/MDLExample/src/main/flex/Tables.mxml |  41 ++
 .../src/main/flex/models/MainNavigationModel.as |   1 +
 .../src/main/flex/models/TablesModel.as |  41 ++
 .../MDLExample/src/main/flex/vos/MaterialVO.as  |  35 +
 .../main/flex/org/apache/flex/mdl/Navigation.as |   2 +-
 .../src/main/flex/org/apache/flex/mdl/Table.as  |  30 ++--
 .../flex/mdl/itemRenderers/TableItemRenderer.as | 145 +++
 .../src/main/resources/defaults.css |  10 ++
 .../src/main/resources/mdl-manifest.xml |   2 +
 10 files changed, 293 insertions(+), 15 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41aef/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml 
b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
index f056f18..a2414b8 100644
--- a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
@@ -74,6 +74,7 @@ limitations under the License.
 
 
 
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41aef/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/Tables.mxml 
b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
new file mode 100644
index 000..a5591d7
--- /dev/null
+++ b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
@@ -0,0 +1,41 @@
+
+
+http://ns.adobe.com/mxml/2009";
+ xmlns:js="library://ns.apache.org/flexjs/basic"
+ xmlns:mdl="library://ns.apache.org/flexjs/mdl"
+ xmlns="http://www.w3.org/1999/xhtml";
+ xmlns:models="models.*">
+
+
+
+   
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41aef/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
--
diff --git 
a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as 
b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
index 5330ae4..12fbbf3 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
@@ -63,6 +63,7 @@ package models
 new NavigationLinkVO("Snackbar", "snackbar_panel"),
 new NavigationLinkVO("Toggles", "toggles_panel"),
 new NavigationLinkVO("Lists", "lists_panel"),
+new NavigationLinkVO("Tables", "tables_panel"),
 new NavigationLinkVO("Loading", "loading_panel"),
 new NavigationLinkVO("Menu", "menus_panel"),
 new NavigationLinkVO("Badges", "badges_panel"),

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0b41aef/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as 
b/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
new file mode 100644
index 000..19e355e
--- /dev/null
+++ b/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
@@ -0,0 +1,41 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//