Re: [FlexJS] List reordering

2017-06-09 Thread Alex Harui
FlexJSStore example uses DragDrop to drag from what looks like a TileList to a regular List, but neither are actually based on List. But there might be code in there you can leverage. HTH, -Alex On 6/9/17, 6:19 AM, "Josh Tynjala" wrote: >I played around with the HTML

Re: [FlexJS] List reordering

2017-06-09 Thread Josh Tynjala
I played around with the HTML drag and drop API not too long ago. It was pretty intuitive and easy to work with. https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API - Josh On Thu, Jun 8, 2017 at 11:46 PM, Harbs wrote: > Has anyone done any work on

Re: [FlexJS] List reordering

2017-06-09 Thread Harbs
otrzarzyck...@gmail.com > -- > View this message in context: > http://apache-flex-development.247.n4.nabble.com/FlexJS-List-reordering-tp62261p62262.html > Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] List reordering

2017-06-09 Thread piotrz
Hi Harbs, I haven't touch subject, but one question - Do you have in mind Basic List or MDL List ? Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-List-reordering-tp62261p62262.html Sent from

[FlexJS] List reordering

2017-06-09 Thread Harbs
Has anyone done any work on reordering items in lists (and drag/drop from and into lists)? Thanks, Harbs

Re: [FlexJS] List

2017-06-05 Thread Peter Ent
Yes. I think people expect lists to scroll by default. Sorry I missed that when I made those changes. —peter On 6/5/17, 1:43 PM, "Harbs" wrote: >That’s what I did for my app css. Changing it to ScrollingViewport fixed >it. > >I did not know whether I should change

Re: [FlexJS] List

2017-06-05 Thread Peter Ent
That had to be accidental. I see in defaults.css that List has a Viewport rather than ScrollingViewport. Just change that and lists should default to scrolling. Need to watch the DataGrid because its lists should not scroll - they just grow and the enclosing container scrolls them all together.

[FlexJS] List

2017-06-05 Thread Harbs
It looks like List defaults to overflow: hidden while it used to allow scrolling by default. Was this an intentional change?

Re: [FlexJS] List Structure

2016-12-01 Thread Carlos Rovira
Hi Alex, I forgot to respond to this email. I got the selection working with your indications. Thanks! :) Hope we could work in get rid of the extra div as we talked in the layout problems thread. 2016-11-28 7:12 GMT+01:00 Alex Harui : > Actually, I was looking at the wrong

Re: [FlexJS] List Structure

2016-11-27 Thread Alex Harui
Actually, I was looking at the wrong widgets. Adding the ItemRendererMouseController gets things working for me. On 11/27/16, 12:06 AM, "Alex Harui" wrote: > >I spent time digging into it. Because you've stripped out the CSS for the >components you are borrowing you may have

Re: [FlexJS] List Structure

2016-11-27 Thread Alex Harui
Carlos, your example is buried in a big app. Kind of makes it harder to debug. I posted a much simpler app. Does it work for you or not? I spent time digging into it. Because you've stripped out the CSS for the components you are borrowing you may have to replace some of it. I think you may

Re: [FlexJS] List Structure

2016-11-26 Thread Carlos Rovira
No errors and I build with maven so first there's a clean. I upload a commit with the list, could you build it and see it? The main difference I think I could have with other project is the excluded default CSS: -compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css

Re: [FlexJS] List Structure

2016-11-26 Thread Alex Harui
Hmm. Works for me. Make sure you've cleaned and built everything. Do you get any exceptions in the console? -Alex On 11/26/16, 4:35 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex, > >I tried with

Re: [FlexJS] List Structure

2016-11-26 Thread Carlos Rovira
Hi Alex, I tried with you recent commit and selection is not working. The examples is similar to what you posted:

Re: [FlexJS] List Structure

2016-11-25 Thread Alex Harui
On 11/25/16, 10:22 AM, "Alex Harui" wrote: > > >On 11/25/16, 7:41 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > >wrote: > >>Hi Alex, >> >>I'm looking through the different components and can't

Re: [FlexJS] List Structure

2016-11-25 Thread Carlos Rovira
Ok Alex, we will see as Thanksgiving has ending. Happy ThanksGiving! :) 2016-11-25 19:22 GMT+01:00 Alex Harui : > > > On 11/25/16, 7:41 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > > wrote: > >

Re: [FlexJS] List Structure

2016-11-25 Thread Alex Harui
On 11/25/16, 7:41 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex, > >I'm looking through the different components and can't see the the way to >assign the items to the container (removing the div from

Re: [FlexJS] List Structure

2016-11-25 Thread Carlos Rovira
Hi Alex, I'm looking through the different components and can't see the the way to assign the items to the container (removing the div from DataGroup). Can you give some clue about where to look? One more thing, beads names are about "Selection" but when I tun the example nothing is

Re: [FlexJS] List Structure

2016-11-25 Thread Alex Harui
On 11/25/16, 1:49 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Thanks Alex, > >I test your code and is running :) > >About order you mention, so order matters, ok, but I think that's could be >s problem

Re: [FlexJS] List Structure

2016-11-25 Thread Carlos Rovira
Thanks Alex, I test your code and is running :) About order you mention, so order matters, ok, but I think that's could be s problem since people will get confuse since beads are pieces of code like config and is strange need to declare a bead before other. ...I use the order in CSS, but you

Re: [FlexJS] List Structure

2016-11-25 Thread Alex Harui
Looks like there were a few places where the beads should have checked the strand before the CSS. It turns out you can't just use the order of beads in the CSS. You have to know the pattern. That's why it use the term "beads" and "strand": the order matters. Also, StringItemRenderer isn't a

Re: [FlexJS] List Structure

2016-11-24 Thread Carlos Rovira
Hi Alex, I'm not capable to make a working exploded List, hope you could share with me the recipe to get it running. Those are the namespaces I have: xmlns:ui="org.apache.flex.core.*" xmlns:models="org.apache.flex.html.beads.models.*"

Re: [FlexJS] List Structure

2016-11-24 Thread Carlos Rovira
Thanks, I'm trying some things with all the info, I'll return to this thread as I get some experience from this. About UIBase, I think it should be accesible in mxml and maybe other components as well...in the meanwhile I'm trying declaring package namespaces 2016-11-24 8:19 GMT+01:00 Alex

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
On 11/23/16, 10:42 PM, "yishayw" wrote: >That was what I had in mind too, but why not extend ListBase instead of >Container? If we extends ListBase then all beads except controller and >model >can stay as they are. > ListBase is currently written to have an internal

Re: [FlexJS] List Structure

2016-11-23 Thread yishayw
xt: http://apache-flex-development.247.n4.nabble.com/FlexJS-List-Structure-tp56640p56711.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
On 11/23/16, 1:59 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >More over, If I put only > >it fails the same way Well, that was more of an illustration. UIBase isn't currently in the basic-manifest since

Re: [FlexJS] List Structure

2016-11-23 Thread Carlos Rovira
Hi Alex, just going through the mails, great info here Thanks. But I'm trying your example and can't make it work This: results in: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml(113): col: 13

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
On 11/23/16, 1:09 PM, "yishayw" wrote: >Alex, > >If you read my post carefully you'll see I'm suggesting to separate some >concerns that are now baked into List. Currently there's selection and >data >rendering baked into List. That's the reason Carlos couldn't just use

Re: [FlexJS] List Structure

2016-11-23 Thread yishayw
to DataGroup) only deal with data rendering. -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-List-Structure-tp56640p56704.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
On 11/23/16, 8:58 AM, "Josh Tynjala" wrote: >> In fact, for every Basic component, we should try to prove that you can >use composition to create the very same component from a UIBase. > >This explanation and the UIBase example code that follows it is probably >good to

Re: [FlexJS] List Structure

2016-11-23 Thread Josh Tynjala
bead (defined in defaults.css) should not be > >ArraySelectionModel but new stripped down version called ArrayModel. A > >controller would not be necessary so I would remove that from > >defaults.css. > > > > > > > >List would extend DataGroup, add the said pr

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
; > >From: Carlos Rovira<mailto:carlos.rov...@codeoscopic.com> >Sent: Wednesday, November 23, 2016 1:07 PM >To: dev@flex.apache.org<mailto:dev@flex.apache.org> >Subject: Re: [FlexJS] List Structure > > > >Hi Alex, > >it seems the DataGroup is not a compone

RE: [FlexJS] List Structure

2016-11-23 Thread Yishay Weiss
that sound? From: Carlos Rovira<mailto:carlos.rov...@codeoscopic.com> Sent: Wednesday, November 23, 2016 1:07 PM To: dev@flex.apache.org<mailto:dev@flex.apache.org> Subject: Re: [FlexJS] List Structure Hi Alex, it seems the DataGroup is not a component for direct use like in old

Re: [FlexJS] List Structure

2016-11-23 Thread Carlos Rovira
Hi Alex, it seems the DataGroup is not a component for direct use like in old flex sdk, I tried to extend from it but doesn't know nothing about a dataProvider. I think I need to wrap it. There's some docs about the minimum requirements and beads needed? I think what we need is exactly the

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
Hi Alex, That would be ok, but I would like to provide data in flex way vía data provider, since is the way we have to populate List in Flex... Is like other components I introduce yesterday. I marked here : https://cwiki.apache.org/confluence/display/FLEX/Table+Of+Components to redactor and

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
On 11/22/16, 4:15 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >2016-11-22 22:56 GMT+01:00 Alex Harui : > >> I just remembered that there are two kinds of "lists" in HTML. There is >> the Select

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
2016-11-22 22:56 GMT+01:00 Alex Harui : > I just remembered that there are two kinds of "lists" in HTML. There is > the Select element which has a selection model, and then there is ol/ul > which has no selection model. What kind of list is MDL's list? Does it > support

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
ere we want a flex behaviour (data provider, selected >Index or item, add to data provider) but all with the look and feel of >MDL List. If we don't get the flex ease in this control, a flexjs user >will >feel disappointed about how cumbersome is to make an app without the old >fle

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
appointed about how cumbersome is to make an app without the old flex way of list management that we all think is the right way. I think, I should start with flexjs List, but List component should not "write" html tags. I think is the ListView Datagroup how needs to write the initial ul (wit

Re: [FlexJS] List Structure

2016-11-22 Thread piotrz
if we are writing some tiny wrapped object around MDL components. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-List-Structure-tp56640p56675.html Sent from the Apache Flex Development mailing list

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
Well if it were up to me, the Basic List and SimpleList will only support the dataprovider/factory mechanism and not support setting random children. Again, I am trying to make sure the Basic set does not have just-in-case code. I think you've added components that thinly wrap HTML elements so I

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
> Ugh. SimpleList got ruined in the back port from JS to AS. > > So maybe I should wait for some fix on this component? > It occurred to me though that both SimpleList and List/ListBase are going > to be oriented towards the "ItemRenderer Factory" API. In such a case, > there is a dataProvider

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
On 11/22/16, 7:43 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >I tried to extend from SimpleList, but I get the same output (ul -> div >ListDataGroup -> items) >It seems SimpleList extends Listso all

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
carlos.rov...@gmail.com on behalf of Carlos Rovira" > <carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote: > > >Hi, > > > >I'm digging into the FlexJS List, and is a complex component with lots of > >beads. But in MDL the structure is simpler. >

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
, "carlos.rov...@gmail.com on behalf of Carlos Rovira" <carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote: >Hi, > >I'm digging into the FlexJS List, and is a complex component with lots of >beads. But in MDL the structure is simpler. > >In MDL th

RE: [FlexJS] List Structure

2016-11-22 Thread Yishay Weiss
of the main container. From: Carlos Rovira<mailto:carlosrov...@apache.org> Sent: Tuesday, November 22, 2016 2:04 PM To: dev@flex.apache.org<mailto:dev@flex.apache.org> Subject: [FlexJS] List Structure Hi, I'm digging into the FlexJS List, and is a complex component with lots of beads

[FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
Hi, I'm digging into the FlexJS List, and is a complex component with lots of beads. But in MDL the structure is simpler. In MDL there is only a with item elements in FlexJS we have the List Container (that I can change to ), but then we have the List DataGroup that is an additional div. So