Re: [FlexJS] MDL List problems

2017-02-14 Thread sankar
Hi Carlos, Yes, I do understand what you and Piotr did already, is fantastic. Availability of kind of stuff to FlexJS scene to render HTML, is just marvelous. I also understand that it's only done it's first phase of development and things like features can be added as we progress. I already in

Re: [FlexJS] MDL List problems

2017-02-14 Thread Carlos Rovira
Hi sankar, I think MDL needs more love since I think there's so much things that could be added or enhanced. Piotr and I did a first version as complete as possible based on what actual MDL 1.3.0 version. As well tried to set up structures like List or Table as Flex need (based on dataProvider and

Re: [FlexJS] MDL List problems

2017-02-14 Thread Josh Tynjala
I recently used MDL in a non-FlexJS project. Here's how I changed the list item background color on roll over using CSS: a:hover.mdl-list__item { background: #f0f0f0; } I assume that you can do something similar with FlexJS. - Josh On Tue, Feb 14, 2017 at 8:40 AM, sankar wrote: > Hi, > >

Re: [FlexJS] MDL List problems

2017-02-14 Thread sankar
Hi, Why the List component missing features like roll-over and selection? I know these features wasn't available to original MDL library List component too, but isn't this a bit odd? A general List component is very unlike to not have these usual features! Is there any beads or some CSS can add

Re: [FlexJS] MDL List problems

2016-11-22 Thread Carlos Rovira
Alex, I filed the import issue here: https://issues.apache.org/jira/browse/FLEX-35179 Thanks 2016-11-22 16:57 GMT+01:00 Alex Harui : > > > On 11/22/16, 3:16 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > > wrote: > > >Hi Peter, > > > >another thing I think is "failing" is the fact

Re: [FlexJS] MDL List problems

2016-11-22 Thread Alex Harui
On 11/22/16, 3:16 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Peter, > >another thing I think is "failing" is the fact I need to explicitly set >labelField to "label" or I get [object Object] >I think List should asume labelField is "label" by default like in old >Flex

Re: [FlexJS] MDL List problems

2016-11-22 Thread Carlos Rovira
Hi Peter, another thing I think is "failing" is the fact I need to explicitly set labelField to "label" or I get [object Object] I think List should asume labelField is "label" by default like in old Flex 2016-11-21 22:57 GMT+01:00 Peter Ent : > I had an issue today with ComboBox and its model n

Re: [FlexJS] MDL List problems

2016-11-22 Thread Carlos Rovira
Peter, Alex, I finaly get it working extending from org.apache.flex.html.List instead of ListBase...but this seems to me that something is not working ok on internals, what do you think? One side effect not related to this problem is that this: public class List extends org.apache.flex.html.List

Re: [FlexJS] MDL List problems

2016-11-22 Thread Carlos Rovira
MDL List is extending ListBase (as js:List does). Is a copy/paste of js:List. I want to start from a working component. e contains Error object message is: ·org.apache.flex.utils.Language.as stack is : org.apache.flex.html.beads.DataItemRen -> from here I can't read nothing more So you think I mu

Re: [FlexJS] MDL List problems

2016-11-21 Thread Alex Harui
Carlos, In your first post, you showed code that tested if the view was an org.apache.flex.html.List. If your MDL List is not extending that List, it would throw an exception that you might see caught in EventDispatcher. What does the 'e' variable contain? -Alex On 11/21/16, 3:19 PM, "carlos.r

Re: [FlexJS] MDL List problems

2016-11-21 Thread Peter Ent
I had this happen today in an example I got from a JIRA bug[1] as the test. In that example (see the paste.apache.org link in the bug) you'll see there is only the 1 mxml file. I could not get this example to work: The myCombo.dataProvider setter needed to get to the combo box model which was not

Re: [FlexJS] MDL List problems

2016-11-21 Thread Carlos Rovira
The example is failing in EventDispatcher.js here: event is "initComplete" /** * @export * @override */ org.apache.flex.events.EventDispatcher.prototype.dispatchEvent = function(event) { try { if (event) { if (typeof(event) == "string") { event = new org.apache.flex.events

Re: [FlexJS] MDL List problems

2016-11-21 Thread Carlos Rovira
Hi Peter, just tested DataBindingExample and is working. In my example I use -compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css In order to get rid of whatever CSS rules that could be inherit from HTML.swc So I put in my MDL lib css this: @namespace "library://ns.apache.o

Re: [FlexJS] MDL List problems

2016-11-21 Thread Peter Ent
I had an issue today with ComboBox and its model not being present on the JS side; it was building SWF only. Maybe something similar is happening for List since you mention labelField which should be part of the model List uses. Just an idea, but its odd that you get a similar error to what I had t

Re: [FlexJS] MDL List problems

2016-11-21 Thread Alex Harui
On 11/21/16, 1:20 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex or Peter, > >I'm building a MDL List from js:List > >I configured a basic js:List example, and then make a copy to get the MDL >List with the basic changes. Then the example does not work anymore with >th