**** BEGIN LOGGING AT Thu Sep 04 02:59:58 2014 Sep 04 06:32:45 morning Sep 04 06:32:55 any datalist experts in here? ;) Sep 04 06:33:13 what is the best way to sort a DataList, i.e. a list that builds itself from a Collection? Sep 04 07:34:47 morning room Sep 04 07:35:00 what's up? Sep 04 07:42:01 *yawn* ^^ Sep 04 07:55:45 so you're still up :) Sep 04 07:55:55 or are you already up? Sep 04 07:56:07 or are you just in need of coffee Sep 04 08:02:10 @dmanderson, yeah I figured it out that it didn't work, at least not with our specific setup Sep 04 08:02:33 (gulp-enyo-builder that is) Sep 04 08:03:28 so now I'm going at it another way, when the project is in development mode, use the development files, when in production use compiled version Sep 04 08:03:38 and compile on a post-hook Sep 04 13:16:09 Garfonso: you had a question about DataLists? Sep 04 13:26:59 yes.. What is the best way to sort them? Sep 04 13:31:21 Well, I haven't actually needed to do it yet, so I could not tell you the best way, however, I have some ideas. Sep 04 13:31:35 Let me check something real quick Sep 04 13:32:35 hrmmm Sep 04 13:33:09 theryanjduffy had a good solution.... But it doesn't work in the latest nightly of enyo for some reason Sep 04 13:33:23 let me take a look at the commit history Sep 04 13:41:19 one think I did was copy the array of records from the collection, sort it manually, then clear the collection and re-add the sorted array.. but that feels a bit... uhm.. ;) Sep 04 13:41:55 yea, something similar to that is the first thing that came to mind for me as well Sep 04 13:41:58 however Sep 04 13:42:02 I remembered there was a better solution Sep 04 13:42:21 however, it seems like some older commit killed the property needed for that solution Sep 04 13:42:27 by replacing it with a different property Sep 04 13:42:44 so I am working on a working version with the current nightly Sep 04 13:54:23 Garfonso: alright, I've got a solution. Sep 04 13:54:41 Garfonso: enyo nightly solution: http://jsfiddle.net/2JftH/3/ Sep 04 13:54:56 Garfonso: enyo 2.4 solution: http://jsfiddle.net/2JftH/2/ Sep 04 13:56:09 I would suggest working with the enyo nightly so that you don't have to switch solutions when enyo updates to the new version Sep 04 14:07:52 Hm.. looks pretty good. Thanks. :) Sep 04 14:08:03 yw Sep 04 14:09:03 morning chall Sep 04 14:17:00 morning GodGinrai Sep 04 15:04:02 Garfonso: collection has a sort method Sep 04 15:05:02 it behaves exactly like Array.sort Sep 04 15:05:18 SimpsonTP: pm me you email address, I have some infor about ilib for you Sep 04 15:06:56 sugardave: that's new. When was that added? Sep 04 15:07:11 I think 2.4.x Sep 04 15:07:17 Garfonso: this sort method would probably be cleaner. I didn't realize they had added it Sep 04 15:07:26 sugardave: it's not in the 2.4 api Sep 04 15:08:15 blame says it was added in april Sep 04 15:08:24 hmm, maybe pre-2.5 then Sep 04 15:08:25 ~ the same time records was switched to models Sep 04 15:08:41 I know it's in there somewhere....should be in nightly Sep 04 15:10:02 * sugardave heads into the office. Sep 04 15:10:46 GodGinrai: me neither.. ;) Sep 04 15:10:56 sugardave: good to know. Thanks. :) Sep 04 18:23:45 Herrie: is there still a preferred "webos-ports starting project"? Sep 04 18:28:11 dmanderson, so did you look at my code ? :) Sep 04 18:29:23 SimpsonTP: does that mean you finally got that fiddle made? Sep 04 18:29:26 :P Sep 04 18:29:30 sugardave, is this ilib stuff in enyo already or should I import it manually Sep 04 18:29:34 hehe no ;) Sep 04 18:29:36 sugardave: what are you looking at doing? Sep 04 18:29:45 SimpsonTP: has to be imported Sep 04 18:29:49 SimpsonTP: it's a lib, github.com:enyojs/enyo-ilib Sep 04 18:29:55 its a grunt script I patched Sep 04 18:29:59 okay thx Sep 04 18:30:10 GodGinrai: re-picking back up the Enyo Lumberjack port I started almost 2 years ago Sep 04 18:30:37 sugardave: nice Sep 04 18:31:22 * GodGinrai wants Preware on his TV <.< Sep 04 18:31:28 things have changed a lot in the Enyo world since then :D Sep 04 18:31:45 I would like to start over, but originally based it on a starting project the ports team had Sep 04 18:32:25 Preware on the TV is probably going to be problematic at best Sep 04 18:32:39 why is that? Sep 04 18:33:15 I don't think LG expects a TV to be quite as "open" as the TouchPad, imo Sep 04 18:33:41 of course, I have no expertise in the original Preware dev, so I could just be wrong Sep 04 18:33:43 lol, I have a feeling you are right Sep 04 18:33:55 However, I think that needs to change Sep 04 18:34:34 If LG doesn't loosen the reigns, then WebOS will have a hard time doing well, even with the competent team backing it Sep 04 18:34:46 I wonder if anyone has tried to run a Mojo app on the TV.... Sep 04 18:35:11 doubtful Sep 04 18:35:40 LG doesn't even include PDK details in their SDK Sep 04 18:36:02 I think they call it the NDK now Sep 04 18:36:10 and requires us to upload the app to a site so that DRM can be added to it just so that we can test the file on our own TV Sep 04 18:36:18 * sugardave sticks with JavaScript, thankyouverymuch. Sep 04 18:36:35 sugardave: They do, and they also have a page explaining that only close partners are allowed to know anything about the NDK Sep 04 18:36:42 great Sep 04 18:47:18 sugardave: Not sure what you mean by "starting project" ? You mean like a template? Sep 04 18:47:44 We have https://github.com/webOS-ports/webos-lib Sep 04 18:48:04 Herrie: I believe he means a bootplate for an OWO app, more or less Sep 04 18:48:17 And use Onyx for the rest Sep 04 18:48:37 just get the enyo onyx bootplate, copy webos-lib and that's it Sep 04 18:48:48 ah, and create an appinfo.json. ;) Sep 04 18:48:53 Garfonso: that sounds easy enough Sep 04 18:50:09 maybe we should have a zip file somewhere nonetheless.. or have a script that clones the stuff from github. :) Sep 04 18:53:58 hrmmm Sep 04 18:54:12 AppMenu being based off of onyx.Menu bothers me :\ Sep 04 19:48:46 so I created a start of my fiddle: http://jsfiddle.net/0jvLpf0L/ Sep 04 19:53:13 and I've updated it Sep 04 20:01:34 if you look at the master branch of the enyo-lumberjack repo it ha commit messages about using the webos-ports template or something like that Sep 04 20:01:41 Herrie: ^^^ Sep 04 20:01:58 just wondering if I can straight up use bootplate + enyo-webos now instead Sep 04 20:02:01 I'll hack on it Sep 04 20:02:21 the fiddle is about the internal binding Sep 04 20:17:15 SimpsonTP: http://jsfiddle.net/sugardave/0jvLpf0L/5/ Sep 04 20:17:47 you also forgot to call this.inherited(arguments) in your overridden methods :P Sep 04 20:19:35 SimpsonTP: actually, this one does what you intend (I think): http://jsfiddle.net/sugardave/0jvLpf0L/6/ Sep 04 20:21:01 just change true back to "" for your target property in wrapKind Sep 04 20:21:12 I actually want to do the this.$.msg.set("value","hello"); Sep 04 20:22:22 okay, so I am confused by your code...should target be the child component? Sep 04 20:22:37 yup Sep 04 20:22:48 brb need to lockup the fire station Sep 04 20:26:46 so the problem is you are specifying a string and you need an object. Can you work with this: http://jsfiddle.net/sugardave/0jvLpf0L/7/ Sep 04 20:31:18 hmmm Sep 04 20:31:24 I see what you do there Sep 04 20:31:43 but I'd rather have it at the instantiation Sep 04 20:32:02 can't I do a componenten lookup on my parent and then inject that ? Sep 04 20:32:49 if you want to make Enyo engineers sad by breaking encapsulation, you could do that Sep 04 20:39:17 :) Sep 04 20:40:29 or the other way around, I could do a component lookup on myself based on the target name Sep 04 20:40:30 LOL Sep 04 20:40:43 that doesn't break encapsulation since I don't depend on whats above me Sep 04 20:40:55 ey dmanderson Sep 04 20:41:08 howdy Sep 04 20:42:31 so did you manage to look at the grunt stuff Sep 04 20:44:25 sugardave: Yes just straight Enyo + Onyx + webos-lib ;) Sep 04 20:46:04 heh heh SimpsonTP I started :) Sep 04 20:46:08 :) Sep 04 20:46:15 Been a bit behind doing benchmarks Sep 04 20:46:27 should I do a pull request ? Sep 04 20:47:01 SimpsonTP: here's another sketchy way: http://jsfiddle.net/sugardave/0jvLpf0L/8/ Sep 04 20:47:01 For sure! Sep 04 20:48:54 I tried to do it via bindings, but you can't specify to: ".controls[0].value" apparently :D Sep 04 20:49:44 nah then I rather stick to the previous solution Sep 04 20:52:35 SimpsonTP: if you're going to do the component/control lookup in the wrapKind, you need to make sure you get the ownership of the wrapped control correctly Sep 04 20:52:55 i.e. the owner will need to be wrapKind Sep 04 20:53:19 I guess I'm missing the "why" of this exercise Sep 04 20:54:00 yeah I understand that :) Sep 04 20:54:32 I'v created a kind which is able to digest linked data and can be wrapped around existing kinds Sep 04 20:55:26 but since you have to know the properties of the wrapped kinds, why not just set bindings to those directly? Sep 04 20:55:44 yeah thought about that as well Sep 04 20:55:59 I can do the binding on the wrap kind instance right ? Sep 04 20:56:07 sure Sep 04 20:57:14 (this is why I think we need more data-aware controls, btw) Sep 04 21:01:01 yeah thats what I try to do Sep 04 21:03:03 hmmm Sep 04 21:03:32 I thought this might work: http://jsfiddle.net/0jvLpf0L/11/ Sep 04 21:15:55 huh, I would expect that to work Sep 04 21:16:08 so did I :) Sep 04 21:24:12 any hints ? Sep 04 21:50:09 don't do that? :D Sep 04 21:53:42 but seriously, I'll have to think about it and try some things when I can Sep 04 23:20:39 sugardave, stil around ? Sep 04 23:24:57 sugardave, this one works: http://jsfiddle.net/0jvLpf0L/13/ the level of the binding is no on the 'top' kind, not somewhere in the component tree Sep 04 23:30:25 okay bedtime Sep 04 23:31:21 Hey sugardave, you there? Sep 04 23:46:45 hey dmanderson Sep 04 23:46:55 Howdy Sep 04 23:46:58 I've got some Bindings questions :) Sep 04 23:48:22 I'm trying to make an Enyo kind that encapsulates and integrates Highcharts Sep 04 23:49:53 To make it more integrated so that it feels much more Enyo in use, I wanted to use bindings to open up the Highcharts options object through some enyo interface Sep 04 23:50:19 But I'm not specific on what needs to be an enyo object for the binding to work Sep 04 23:50:54 Does only the "from" object need to have Binding support? Sep 04 23:52:14 I tried diving into the enyo.Binding source, but it seemed like even the from might not need to have a set function as long as a "source" with a set function is defined. Sep 04 23:52:45 I'm currently diving through the consequences of the Observer chain to see what functions those require, but if I can get an answer from you, that would be much faster Sep 04 23:53:01 hey i2y4n, it's been a while ;) Sep 04 23:54:05 Hey godginrai, yea I’ve been able to figure out most things since my earlier questions. Building up a new list of questions though, haha. How have you been? Sep 04 23:54:16 good :) Sep 04 23:57:42 I found a broken link the other day. Who should I tell? Or what should I do? Sep 04 23:59:26 on the enyo site? Sep 05 00:00:16 In the api documentation in the enyojs site Sep 05 00:00:16 you could tell dmanderson, sugardave, or Roy__ about it. They all work for LG, so one of them should be able to forward the message on to the webmaster Sep 05 00:00:27 oh, in the API docs Sep 05 00:01:10 GodGinrai no both don’t need binding support - but you’ll want the reciever to have getter/setters Sep 05 00:01:19 you could still tell them. The Enyo team is overhauling the API, tho', so it might not matter Sep 05 00:01:54 dmanderson: I see... Sep 05 00:02:26 that said, bindings are not good for whole objects, or things where mutations are hard to verify Sep 05 00:02:36 a == b == true type of situation. Sep 05 00:03:08 Yea, I was planning to pull the options out into separate options available in some form through the object Sep 05 00:03:35 Maybe it would be best to use a computed property to build a new options object out of those? Sep 05 00:03:58 Agree with computed property. You can do a small work around, for poplating the object Sep 05 00:04:14 {} != {foo:’bar’} Sep 05 00:04:28 so if you set the initial value to {} then a mutation can be observed Sep 05 00:05:07 I’ve done things on a collection, where I’ll bind the collection down to a control. Sep 05 00:05:15 And then I’ll bind the length of the collection as well. Sep 05 00:05:33 and use a collectionLengthChanged observer Sep 05 00:07:09 hrm Sep 05 00:08:17 If you stringified the JSON for the object, wouldn't any change be reflected with that? Sep 05 00:08:33 if the stringified version was observed? Sep 05 00:35:37 i2y4n what kind of questions are you coming up w/ now? Sep 05 00:36:36 GodGinrai: you seemed busy didn’t want to bug you. I have a couple questions about onyx.IconButton Sep 05 00:37:32 I want to center the icons, but they look to be left aligned Sep 05 00:38:06 I’d also like to have the icon change when the page is active and not just when pressed Sep 05 00:38:41 hrm, when the page is "active"? Sep 05 00:39:30 I can’t figure out how to get the fiddle to work. Does this help? http://jsfiddle.net/o5k8752a/ Sep 05 00:39:55 I’m using the iconbuttons as a navigation bar Sep 05 00:44:06 Here, I fixed it so it displays the nav bar: http://jsfiddle.net/o5k8752a/1/ Sep 05 00:44:27 However, the images are relative URLs, so I can't see what the icons are doing Sep 05 00:44:57 however, from what I can tell, the onyx.IconButton should be setting the image as the background image, therefore centering it Sep 05 00:45:11 Ha, that was so simple. Lemme try to upload the graphics somewhere Sep 05 00:45:44 yea, 2.4 added some really useful stuff :) Sep 05 00:47:33 http://jsfiddle.net/o5k8752a/1/ Sep 05 00:48:22 If I don’t style the icons to 33% width the icons are centered but they don’t scale with a page. Sep 05 00:49:08 i2y4n: you need to use the Update button to get it to generate a URL that has the latest changes Sep 05 00:49:23 http://jsfiddle.net/i2y4n/o5k8752a/2/ Sep 05 00:53:13 ah Sep 05 00:53:16 here's the problem Sep 05 00:53:26 Ok, by default, a background is put at the top-left Sep 05 00:53:48 so you would have to modify it w/ the background-position property Sep 05 00:57:40 i2y4n: a much easier way to solve the problem would be to drop the iconButtons in containers and centering them within those. It depends on what you want to do. Sep 05 00:57:56 do you want a person to click anywhere on that 33% to activate the button? Sep 05 00:57:59 or just on the icon? Sep 05 00:58:16 Like adding this in the style section? background-position:center Sep 05 00:58:20 Good question... Sep 05 00:59:01 I guess it doesn’t matter, haven’t figured it out yet Sep 05 00:59:50 solving it with styles actually gets a lot more complicated than that. It requires background-position: center top; for the unpressed mode. Then for the pressed mode, you need another background-position line that will center it with the "pressed" part of the icon Sep 05 01:02:08 It would be much easier to just not mess w/ the width of the icon button and drop it into a container that separates them at the appropriate distances Sep 05 01:02:32 Or you could also just use enyo.Images inside of enyo.Buttons Sep 05 01:05:01 Okay, I shall try something out. Before I do though, do you know how to solve the “active” portion? Sep 05 01:06:22 you're talking about that part where you are rendering the different kinds into document.Body? Sep 05 01:07:08 I know I can make a different nav bar for each page and change out the icons. So let’s say it’s on the “Settings” page, then the Settings icon will be red and the other two will be black. Was wondering if there was a way of applying it to the kind so I could keep using the NavBar kind instead of making a specific one for each page. Sep 05 01:09:06 yes, there are numerous ways to do that Sep 05 01:09:57 Do you have some simple kinds for Home, Timeline, and Settings that you can drop into the same fiddle? Sep 05 01:15:11 I added them to the bottom of the previous fiddle. Again, I’m not sure how to put it into the jsfiddle properly though. http://jsfiddle.net/i2y4n/o5k8752a/3/ Sep 05 01:21:43 i2y4n: first thing's first: Fixed it up so that the fiddle works correctly Sep 05 01:21:45 http://jsfiddle.net/o5k8752a/4/ Sep 05 01:21:56 you had changed Test's view to itself so it was recursing Sep 05 01:23:35 Hmm, I still don’t see what you did Sep 05 01:25:28 enyo.kind({ Sep 05 01:25:28 name: "Test", Sep 05 01:25:28 kind: "enyo.Application", Sep 05 01:25:28 view: "NavBar" Sep 05 01:25:28 }); Sep 05 01:25:39 you had changed view to "Test" Sep 05 01:25:45 I changed it back to "NavBar" Sep 05 01:27:08 It still doesn’t go from navbar to home, timeline, or settings but on yours it does Sep 05 01:28:17 Well, aside from changing view to NavBar, I also moved your other kinds above the application definition and the ready function Sep 05 01:29:57 I tried that too. Oh well. Looked at the codes side by side and don’t see a difference. Oh well, guess it doesn’t matter. Sep 05 01:30:35 stupid question, but... did you remember to hit Run to make JSFiddle load the code? Sep 05 01:30:53 oh yea Sep 05 01:30:56 one other thing Sep 05 01:30:57 duh Sep 05 01:31:07 I checked "Layout" under Frameworks and extensions Sep 05 01:31:15 because you were using FittableRows Sep 05 01:31:21 which are in the layout library Sep 05 01:32:36 Layouts did it, ha. Thanks Sep 05 01:32:40 yw Sep 05 01:51:15 i2y4n: almost got a proof of concept ready for you Sep 05 01:51:17 oh btw Sep 05 01:51:36 you might want to consider using classes instead of the style property Sep 05 01:51:45 it makes things much cleaner and easier to change Sep 05 01:55:06 k, will do Sep 05 02:02:45 loving the activity in this room :) Sep 05 02:03:03 :) Sep 05 02:03:40 Yes agreed, godginrai is amazing Sep 05 02:13:23 Almost got it ready Sep 05 02:13:32 the title is giving me some problems :P Sep 05 02:13:45 I think I just need to change my bindings Sep 05 02:17:46 i2y4n: Here you go: http://jsfiddle.net/o5k8752a/5/ Sep 05 02:18:15 dmanderson: you'll like this fiddle. It uses that state change stuff I came up w/ for SimpsonTP Sep 05 02:19:19 nice Sep 05 02:19:47 will look in a bit :) working on personal side project right now Sep 05 02:20:01 alright Sep 05 02:21:41 i2y4n: let me know if you have any questions Sep 05 02:35:41 i2y4n: Here's an updated version: http://jsfiddle.net/o5k8752a/6/ Sep 05 02:36:32 I removed some of my logging, and also removed the name: "listItem" in the Home kind, because that was causing the DataList to try to add multiple kinds with the same name Sep 05 02:42:07 Looking at it right now Sep 05 02:49:08 GodGinrai: The NavBar icons aren’t highlighting the current page. Sep 05 02:49:42 Yes, I know Sep 05 02:49:52 That's because I didn't add that functionality Sep 05 02:50:19 Because I don't really use iconbuttons, so I'm not sure how you show the other state w/ them Sep 05 02:50:21 however Sep 05 02:50:29 to give you a start in the right direction Sep 05 02:50:42 I showed how you would use bindings to change the title Sep 05 02:50:49 Oh, I thought that’s what you were showing me Sep 05 02:51:30 Well, the same technique I used to change the title can be applied to the Navbar to make the buttons highlight the current page Sep 05 02:52:23 Okay, I wouldn’t know how to do it once though. Is there something along the lines of ontap: that can be used? Sep 05 02:53:07 I saw this listed as an example to something before. .onyx-icon.active, .onyx-icon:active:hover Sep 05 02:53:22 just a sec Sep 05 02:53:25 let me try something Sep 05 02:56:29 I’ve got to head out rn. I’ll check when I come back Sep 05 02:56:48 rn? Sep 05 02:56:56 right now Sep 05 02:57:01 ah, ok **** ENDING LOGGING AT Fri Sep 05 02:59:59 2014