**** BEGIN LOGGING AT Fri May 24 02:59:58 2013 May 24 14:42:37 morning May 24 14:48:37 hello May 24 18:53:05 List fitting setupi is the wrost May 24 18:53:07 worst* May 24 19:01:23 lol May 24 19:01:31 leaving work, cya guys May 24 22:31:43 <_|Nix|_> Hey! I got started with enyojs about 12 minutes ago. I would liike to make the front page of my app a list of 100 items. So, I took the bootplate code and I changed the kind of the App to enyo.List, and I specified count: 100, and an onSetupItem: function( inSender, inEvent ) { this.$.name.setContent( "Item " + ( inEvent.index + 1 ) ); } May 24 22:31:52 <_|Nix|_> Yet, I'm still getting a blank page. May 24 22:31:58 <_|Nix|_> How do I get a list to have items? May 24 22:32:21 can you put it in jsfiddle? May 24 22:32:29 my _guess_ is that your list needs a height May 24 22:32:33 but I want to look to be sure May 24 22:33:01 <_|Nix|_> summatusmentis: Not sure how to make a jsfiddle ... I'm using the bootplate stuff, which has a whole structure of things. May 24 22:33:28 <_|Nix|_> summatusmentis: Is there a jsfiddle/jsbin template where I can just add my App definition and the bit of code that renders it to the body? May 24 22:33:45 you can set the library type in jsfiddle to enyo May 24 22:33:48 then put your kind in there May 24 22:33:55 <_|Nix|_> OK. May 24 22:34:09 then below your kind, so something like: new App().renderInto(document.body); May 24 22:35:55 <_|Nix|_> summatusmentis: http://jsfiddle.net/qyHbR/ May 24 22:36:28 you're missing the components block May 24 22:37:23 <_|Nix|_> summatusmentis: Oh, OK. I thought onSetupItem sets up the item. May 24 22:37:34 and you you need to trigger the event handler May 24 22:37:56 http://jsfiddle.net/qyHbR/1/ May 24 22:38:30 List works by making a "setupItem" event for every row May 24 22:38:43 <_|Nix|_> summatusmentis: Awesome! Thanks! May 24 22:38:47 you need to set a function that'll handle every row May 24 22:39:00 which is what your onSetupItem function was, but you needed to hook it up May 24 22:39:13 you also have to define, in the definition of the List, what each row item will be May 24 22:39:25 <_|Nix|_> summatusmentis: OK, I see, and components[] is basically the template for a single row, right? May 24 22:40:05 components: [] is essentially the definition of all the children. In this case, yes, you're defining the component that'll be every row May 24 22:40:11 I'd recommend you go read https://github.com/enyojs/enyo/wiki May 24 22:40:24 it'll give you some good starting background information May 24 22:40:44 <_|Nix|_> summatusmentis: Yeah, I went here when it started to get hard to understand: https://github.com/enyojs/enyo/wiki/Lists May 24 22:40:59 <_|Nix|_> summatusmentis: ... and sure enough, there the list also has components. May 24 22:41:04 yes May 24 22:41:05 :) May 24 22:41:25 <_|Nix|_> summatusmentis: I would've probably figured it out in the end, but a human can make things clear much faster than any document. Thanks! May 24 22:41:46 I'd start by reading through the everything in the "Getting Started", "Tutorials", and "Key Concepts" sections before you jump into the deep end May 24 22:41:53 there are some concepts in Enyo that are fundamental May 24 22:42:08 and would have helped your list issue initially May 24 22:42:42 the rest you can reference as necessary May 24 22:42:55 but I'm happy to help, I'm not trying to come off as preachy May 24 22:43:49 <_|Nix|_> summatusmentis: Thanks. You're right, of course, and normally I would go more in-depth. This time, I was just trying to throw together a quick example that can be scaled up easily to stress-test the page loading. May 24 22:43:58 sure sure May 24 22:44:04 <_|Nix|_> summatusmentis: Like, what happens when I set the count to 1000 instead of 100. May 24 22:44:19 with a List, should be nothing :) May 24 22:44:46 they use a Flyweight code pattern, which helps reduce the overhead May 24 22:44:47 <_|Nix|_> :) May 24 22:45:03 if you want a comparison, setup a Repeater as well May 24 22:45:15 and do something big, like 1,000,000 rows May 24 22:47:59 _|Nix|_: I've gotta head home, so I'll be gone for a bit, but I idle here, so if you've got other questions, I'll get back to you later this evening May 24 22:57:09 <_|Nix|_> summatusmentis: Thanks! May 24 22:57:16 <_|Nix|_> summatusmentis: Have a good one! **** ENDING LOGGING AT Sat May 25 02:59:57 2013