**** BEGIN LOGGING AT Tue Dec 23 02:59:59 2014 Dec 23 15:32:37 gm all Dec 23 16:07:22 good morning! Dec 23 16:12:12 hi Dec 23 16:12:20 any1 experience with repeaters ? Dec 23 16:17:45 a little Dec 23 16:17:48 whats up Dec 23 16:19:23 If I want multiple items I need to create a array right ? Dec 23 16:19:25 ohw alarm Dec 23 16:20:55 for a regular repeater, you can kind of set it up in any way you choose, although i suspect an array is probably the easiest thing to work with Dec 23 16:21:13 for a DataRepeater, you want a Collection, I think. Dec 23 17:51:36 yes, DataRepeater uses enyo.Collection....which is an array-like structure of models. You can pass an array directly to collection.add() to build it Dec 23 17:52:34 in my not-so-humble opinion on this topic, I recommend using DataRepeater instead of Repeater going forward....it's just easier to deal with overall Dec 23 18:00:56 same for List and DataList, in case anyone is wondering Dec 23 19:29:05 I'm not sure if collections are not to much overhead for what I want to do Dec 23 19:37:03 can I have other objects in collections ? Dec 23 19:40:02 You can have anything in a collection Semanticfire Dec 23 19:40:29 It’s just a collection of models Dec 23 19:41:11 hi dmanderson Dec 23 19:41:27 Howdy! Dec 23 19:41:36 so even complex stuff ? Dec 23 19:42:32 Yeah, I mean most of what a collection does is some generic interaction with a model Dec 23 19:43:49 k Dec 23 19:55:37 but the datarepeater does need field pointers to do the mapping Dec 23 19:57:30 if you do the binding at least Dec 23 19:58:10 I still need a setupitem to some complex stuff, is that also posible with a data repeater ? Dec 23 20:07:18 there is no setupRow for DataRepeater...I usually offload the complexities to the models Dec 23 20:08:40 actually, I offload the complexities to the kinds that will have the models mapped to them and which comprise the rows of the DataRepeater Dec 23 20:11:51 hmm Dec 23 20:12:53 so you add a binding form the full model , to a property in the kind ? Dec 23 20:23:32 when the collection of a DataRepeater changes/is set, it generates whatever component you have in it for each model in the collection and also sets the model to it Dec 23 20:23:58 so you don't need to specifically bind the model to the kind, it's auto-magic Dec 23 20:24:17 you have fidle of that ?, the sample in the doc is to simple imho Dec 23 20:24:36 then, in the kind you just set up bindings from model.whatever to $.foo.content, for example Dec 23 20:24:58 Semanticfire: if not, I can cook one up...it will be a little while, though Dec 23 20:26:06 so I create a seperate kind which just takes this full model ? Dec 23 20:39:30 yes Dec 23 20:39:37 let me see if I already have a simple one for that Dec 23 20:43:50 Semanticfire: not exactly the simplest. This is actually a DataRepeater with embedded DataList, but you can see what is going on. The outer DataRepeater uses the form that's probably(?) in the sample, while the inner DataList uses a defined kind and sets no bindings Dec 23 20:43:58 http://jsfiddle.net/sugardave/xmbJ8/ Dec 23 20:44:39 it's an older example so not using the bindings string syntax that you should use in 2.5.1 (getting rid of the preceding ., etc.) Dec 23 20:59:23 okay I need to digest that one Dec 23 20:59:54 just pay attention to the DataList part Dec 23 21:10:50 I'm trying to :) Dec 23 21:11:34 I'm making a slightly simpler one, hang on if you have a minute Dec 23 21:11:52 I'm waiting for fires... Dec 23 21:15:36 Semanticfire: http://jsfiddle.net/sugardave/wmpt285e/ Dec 23 21:15:40 this is just the repeater Dec 23 21:16:00 it shows the item doing "complex operations" with a simple transform on the value it is getting from the model Dec 23 21:17:53 okay Dec 23 21:19:54 I'm trying to see if I can map this to the trick I try to pull :) Dec 23 21:20:40 you can do it! Dec 23 21:21:20 my tip for this example is the somewhat ambigious naming of kinds / components / attributes Dec 23 21:24:13 so the 'model' magically apears in the kind ? Dec 23 21:24:41 yeah, that is a good point...in some other examples I was working on way back when I had named some model properties "foo" and the component names where to render were "notFoo" Dec 23 21:25:09 Semanticfire: yes, the DataRepeater or DataList will apply the model each time it renders that kind Dec 23 21:31:48 so I could access the model from a constructor as well ? Dec 23 21:33:01 perhaps, let's see Dec 23 21:33:21 do you need it in the constructor, or is create sufficient? Dec 23 21:33:39 create would probably work Dec 23 21:37:29 Semanticfire: looks like in create, you can get at the model either before or after you would run the inherited call; for constructor, only after Dec 23 21:38:54 that could do Dec 23 21:39:13 I'll look into it the comming days Dec 23 21:39:20 ( its too late here now ;) ) Dec 23 21:39:23 cool, let me know how it progresses :D Dec 23 21:39:52 I love DataRepeater/DataList and how much more awesome it is than the old ones Dec 23 21:40:02 s/it is/they are/ Dec 23 21:40:02 sugardave meant: I love DataRepeater/DataList and how much more awesome they are than the old ones Dec 23 21:40:28 thanks synergybot! Dec 23 21:42:35 :) Dec 23 21:47:49 still there ? Dec 23 21:49:16 is there a sample off datagridlist ? Dec 23 21:49:40 that I don't have offhand Dec 23 21:49:49 but it should follow a similar pattern Dec 23 21:50:42 okay Dec 23 21:50:47 I'll look into it Dec 23 21:51:56 in you example, I can have components in the 'WidgetView' component in the enyo.datarepeater Dec 23 21:52:42 yes, you certainly can Dec 23 21:53:07 okay Dec 23 22:16:43 Sorry went to lunch, back now :D Dec 23 22:17:09 You also have the Parse method as well Dec 23 22:31:11 baby steps ;) Dec 23 23:11:31 sugardave: sadly, List and DataList act quite differently on the UI side. And there's a PulldownList but no PulldownDataList :D Dec 23 23:19:22 EricBlade1: how so on the UI difference? Dec 23 23:19:48 you could try your hand at making PulldownDataList ;) Dec 23 23:26:28 sugardave: hmm. i'd have to revert my code several revisions or build a new test to remember specifically.. something about the scrolling acts really different in DataList.. Dec 23 23:28:28 it might even be just some settings. i'm pretty sure a list will do touchscroll even if you're using a mouse, datalist doesn't Dec 23 23:28:33 there may be other things Dec 23 23:28:34 intersting...I never noticed Dec 23 23:29:15 it SHOULD behave the same way Dec 23 23:29:58 it might be specifically the PulldownList that does that, though, Dec 23 23:30:19 this app has gone from List -> PulldownList -> DataList, and I just remember it definitely acts differently. Dec 23 23:30:49 personal app or company app? Dec 23 23:30:52 Personal Dec 23 23:31:06 when I drag a DataList, my items receive tap events, which is also different Dec 23 23:31:22 and clicking in the scrollbar also generates tap events Dec 23 23:33:00 you weren't using moon.DataList were you? Dec 23 23:33:13 no Dec 23 23:33:19 k Dec 23 23:49:42 parse method ? Dec 23 23:50:33 Semanticfire: yes, models and collections can set parse: true and then provide a parse method so that you can manipulate the data before the model is made Dec 23 23:51:07 hmmm Dec 23 23:52:58 but models are lightweight, so there is no kind infrastructure in there right, e.g. watterfallin will not work Dec 23 23:53:22 right Dec 23 23:53:28 it's not based on enyo.Object Dec 23 23:53:46 okay, then the kind which interacts with the model works better in my use case Dec 23 23:54:16 dmanderson, did you ever look in the left/right arranger issues with 2 panels ? Dec 23 23:55:50 that has been around a LOOOOOONG time Dec 23 23:56:16 yup:( Dec 23 23:56:31 I used to force 3 components and then disallow going to the 3rd/reset index to the 2nd or whatever I needed it to do Dec 23 23:56:56 it works okay unless you want to wrap:true :D Dec 24 00:11:48 Sorry got disconnected, no haven’t had a chance :( **** ENDING LOGGING AT Wed Dec 24 02:59:59 2014