**** BEGIN LOGGING AT Tue Dec 11 03:00:00 2012 Dec 11 15:59:18 anyone know if there's a way to put an onyx.Icon in a RadioButton? Dec 11 16:07:59 summatusmentis: a radio button is just a grouped option, right? check the sampler "Grouped icon buttons" Dec 11 16:12:43 katratxo: yeah, I've been looking at that, but I'm wondering about captions as well (trying to do something similar to the iOS tab-bar) Dec 11 20:04:53 Question, why doesn't addComponent work? Or maybe a better timid question would be, how does addComponent work? I was attempting to construct components like so, myDivTargetComponent.addComponent(new myCustomCompnent()); //doesn Dec 11 20:05:09 pushed 'enter' too early ^ Dec 11 20:06:01 //doesn't* work, however myDivTargetComponent.createComponent({kind:"myCustomCompnent"}); does work Dec 11 20:06:33 It is counterintuitive to name a function addComponent who doesn Dec 11 20:06:55 AGRHHHHHHHHHHHHHHHH, 'enter' button again^ Dec 11 20:07:18 is anyone using enyo without using the enyo loader, enyo.depends? (I'd like to use sprockets instead) Dec 11 20:09:18 omg765: What's your question? Dec 11 20:10:59 addComponent works Dec 11 20:11:01 Valdez: Well, bootplate asks me to build the app with tools/deploy.sh, which uses source/package.js. I'd like to use middlemanapp and sprockets instead Dec 11 20:11:21 you can declare it inline like you would in the file. that's how i always do it.. Dec 11 20:12:02 er addComponent, sorry i didn't see that. createComponent({}) works like you say it should Dec 11 20:13:03 omg765: you can use whatever method you like to load your tools Dec 11 20:13:27 as long as the script gets in DOM before enyo tries to use it, you should be good Dec 11 20:14:27 fxspec06_: OK, great. thanks :) Dec 11 20:14:43 NP! Dec 11 20:15:15 Valdez: i think addComponent is for controls, whereas createComponent is for already existing components. i think*. Dec 11 20:16:10 gl fxspec06 I have bruteforced every which way possible to recognized my added component, the data is there(as evidence through the myDivTargetComponent.getComponents()), true, but it doesn't render over the parent, 'myDivTargetComponent'... If I was adding a component that is only a data payload then I would be OK, but I adding a chunk of HTML.... SHIT, I think I figured it out LOL... BTW, I have been desperately sick with a cold for the past week s Dec 11 20:16:15 * Valdez blah Dec 11 20:16:47 er, that might not be it though Dec 11 20:16:50 I was calling render() over myCustomCompnent, which is a enyo.Component, not a enyo.Control Dec 11 20:16:56 try calling render() before it Dec 11 20:17:04 What? Dec 11 20:17:27 I called render() over it and it's parent myDivTargetComponent Dec 11 20:17:42 funny, i had this convo just last month. lol http://logs.nslu2-linux.org/livelogs/enyojs/enyojs.20121109.txt Dec 11 20:18:18 why do you need to use addComponent over createComponent? Dec 11 20:18:29 I called render() before after and anywhere in between over many different invocations, hence, the ridiculous usage of "brute force" Dec 11 20:20:27 i actually think addComponent is a 'protected' method, which means you *shouldn't* be using it Dec 11 20:20:33 s/using/using or needing Dec 11 20:20:36 s/using/using or needing/ Dec 11 20:20:51 argh. where's wocebot to save me when i need it Dec 11 20:24:42 fxspec06_, I would have to get permission for wocebot to come here.... Dec 11 20:24:47 up to others. Dec 11 20:28:02 fxspec06: the reason I want to use addComponent() is because of the way I think about my program. Components resemble Java's OO paradigm therefore the notion of using a contructor then doing something with the constructed object like attaching it via 'addComponent' is the natural flow and way of thinking about my solution... That is why I ventured down this path... Dec 11 20:29:02 yeah, but i'm 99% sure that's not how it works and you're beating yourself to death over nothing unfortunately Dec 11 20:29:30 I should add that my program is getting JSON payloads that setup a list, once the list data is received I am dynamically generating these customComponents Dec 11 20:29:40 i can see the naming convention though, totally see your point. i think sugardave knows a special way to use addComponent Dec 11 20:30:02 Yeah, I agree and this futile practice has been short lived so cheers to you my friend! :) :) Dec 11 20:30:30 that's fine, you really should be using the createComponent() though. that's what i've concluded in the past anyways Dec 11 20:30:47 NP cheers back! feel free to ask anytime Dec 11 20:33:22 That is what I resolved to do as a result of my brute force tactics... I am asking these questions out of curiosity and in someway to substantiate my time used over these things.. Also I did gain some clarity in regards to the whole enyo Kind Component vs Control thing... Dec 11 20:34:18 That however was found through more of a Socratic inner dialog, per se... Dec 11 20:34:35 HEG Dec 11 20:34:37 heh* Dec 11 20:37:04 Thanks! TTYL Dec 11 20:44:26 hi fxspec06_ Dec 11 20:52:22 hey Garfonso, what's up Dec 11 20:56:06 you said once that you could tell me how to handle back gestures with enyo2.. :) Dec 11 21:01:00 what I'm doing right now is, I catch the "onkeydown" and "onkeyup" events and check for keyCode == 27, if so I return true (to prevent further propagation) and in the keyup handler do what I want the backgesture to do.. Dec 11 21:01:28 but somehow the webOS on the phone still handles the back gesture and minimises my card... that's what I need to prevent. Dec 11 21:29:45 hmm Dec 11 21:29:58 27 is the esc key right? Dec 11 21:32:50 so, what you needa do basically, is find my github and download my "system-ext" package Dec 11 21:33:00 add the ApplicationEvents kind Dec 11 21:33:28 and then add that, and as a param do onBack: "myfun" Dec 11 21:33:54 {kind: "ApplicationEvents", onBack: "goBack"}, Dec 11 21:34:19 https://github.com/fxspec06/webOS-System-Extension Dec 11 21:34:56 you might need jason's package too to get everything working, not 100% sure Dec 11 21:35:21 you could also try just listening for "onBack", that might work w/o any ext Dec 11 21:48:19 ok, I'll try that. Dec 11 21:48:22 thanks. :) Dec 11 21:54:53 cool, lmk if it works Dec 11 22:07:21 I am really curious, where is enyo.forEach() discussed outside of http://enyojs.com/api/#enyo/source/kernel/lang.js ? Dec 11 22:08:07 lol it's not =P Dec 11 22:08:14 what's your Q? Dec 11 22:08:20 why the lol? Dec 11 22:08:33 ps, i thought i was only one who ever knew bout that...... (j/k) Dec 11 22:08:45 because, i'm intrigued by your digging into the source Dec 11 22:08:51 * fxspec06 dinner Dec 11 22:10:45 Well... These questions of mine are simply questions that have come up through development... I think this questions came out of seeing it used in this example: https://github.com/enyojs/enyo/wiki/Tutorial Dec 11 22:11:46 Seeing it used in context, I can make inferences... Then I just look to see what part of the picture is it that I am missing such that I don' Dec 11 22:11:58 {CRAP!} 'enter' key ^ Dec 11 22:12:59 don't understand that function, that is, expand my understanding of Enyo... But on this one there was no references other than the cryptic lang.js... That has some pretty cool stuff Dec 11 22:13:15 etc., etc., ... et. al. Dec 11 22:14:10 I tear my fangs out looking for this stuff :) Dec 11 22:16:05 I should add, "and it hurts!" Dec 11 22:20:42 It turns out that my Component vs Control revolution/hunch was just a fizzle... For one it was a (subclass Kind FittableRows)Control the entire time Dec 11 22:37:17 yeah reading the source is awesome. Dec 11 22:37:21 lang.js is probs my fav Dec 11 22:37:32 compontnt & control are cool Dec 11 23:04:16 anyone know how to put 2 children in an onyx.Button vertically? Dec 11 23:04:20 instead of horizontally? Dec 11 23:05:10 layoutKind: "FittableRowsLayout"; ? Dec 11 23:05:57 ugh, that's awful Dec 11 23:06:03 does it work? Dec 11 23:06:17 no Dec 11 23:06:45 also why is that awful? i use layoutKind all the tiem. Dec 11 23:06:47 time* Dec 11 23:08:17 it's an extra layer of depth Dec 11 23:08:34 oh, yeah Dec 11 23:09:07 i'm trying to think if i've ever done that Dec 11 23:09:45 i've actually had trouble w/ button regarding layout. i could never quite fix the NEO button text (haven't tried too hard tho) Dec 11 23:10:49 you could add *gasp* a table.. Dec 11 23:10:51 * fxspec06 ducks Dec 12 00:36:39 summatusmentis: you could try enabling html and adding a line break after 1st thing Dec 12 01:53:55 this. is so cool. Dec 12 01:54:02 actually this is freakin' awesome. Dec 12 02:00:15 which? Dec 12 02:00:51 my systems analysis final project. it's a group one, but this last part is creating the screens for the system we're "making" Dec 12 02:00:53 or "made" Dec 12 02:01:18 and, it's coming out pretty awesome actually. i've never designed anything from the ground up Dec 12 02:01:54 "made"? as in, you were supposed to, but didn't? or weren't supposed to, just supposed to mock? Dec 12 02:02:49 http://i.imgur.com/kLOoH.png http://i.imgur.com/lDvhJ.png http://i.imgur.com/sHBSf.png http://i.imgur.com/SRnLo.png http://i.imgur.com/DBp76.png Dec 12 02:03:01 "made" as in, it's a fake project and we're not actually implementing the system Dec 12 02:03:26 we're just designing it from the first 3 phases of SDLC. blah blah boring but the actual screens are cool =P Dec 12 02:05:47 interesting Dec 12 02:07:38 yeah, this is becoming tiring though these screens. i've got a few more left, then i got to do mockup reports O.O Dec 12 02:30:47 http://i.imgur.com/F5H5K.png http://i.imgur.com/ZeYUY.png http://i.imgur.com/cOd6G.png **** ENDING LOGGING AT Wed Dec 12 02:59:58 2012