**** BEGIN LOGGING AT Mon May 20 02:59:59 2013 May 20 19:44:45 this is kind of a weird question, but is there a way to use Enyo kinds to show traditional radio buttons? May 20 20:04:23 yes May 20 20:04:28 how? May 20 20:04:40 I'm working on something that's roughly a "survey builder" May 20 20:05:25 you going to have it build an HTML form? May 20 20:07:09 btw: { kind: enyo.Input, type: "radio" } May 20 20:18:26 GodGinrai: we're having people define questions and their possible responses (if needed) that will feed into something else May 20 20:18:35 this structure is roughly like survey monkey, or something similar May 20 20:19:07 I see May 20 20:19:25 btw, did you see my answer to "how"? May 20 20:19:57 yes, thank you May 20 20:20:02 that's useful May 20 20:20:30 yea, you can do that for any of the types that don't have their own Enyo kinds May 20 20:21:20 I knew about this because I had been looking at doing that instead of the onyx radio buttons at one point. May 20 20:22:18 Then I found an easy way to change the image for the Onyx radio button to match my color scheme May 20 20:22:32 So I ended up using them instead May 20 20:24:23 the onyx radio buttons are kinda weird for desktop use May 20 20:27:31 I know what you mean May 20 20:27:38 It depends how you use them May 20 20:29:22 I used them in combination with an enyo.Panels and an onyx.Checkbox for a good effect May 20 20:30:37 Oh btw, summatusmentis, you can use pretty much anything to emulate radio buttons if you use the enyo.GroupItem API May 20 20:31:07 Can anyone take a look at this and tell me why SetupAddon is not firing? http://jsfiddle.net/trex005/JS3jw/3/ May 20 20:31:38 there's an example w/ Grouped Checkboxes here: http://nightly.enyojs.com/latest/support/examples/ui May 20 20:32:01 plus that page shows a lot of the standard form elements in enyo May 20 20:35:13 oh, that's interesting GodGinrai May 20 20:35:39 Bummer..... been fiddling with it for hours.... I'll check back later to see if anyone has thoughts... thanks for your help. May 20 20:36:15 Trex005: lemme look quickly May 20 20:37:01 Trex005: looking at it right now May 20 20:37:26 ohh... thank you guys May 20 20:40:42 well the fact that it's taking you guys a few makes me feel a little better... maybe I'm not a complete numbskull :) May 20 20:41:28 well, I don't ever use Lists XD May 20 20:42:15 I really could use any multiselect... should I convert it to checkboxes? :) May 20 20:42:16 I'm guessing it's a context issue, but I'm still trying to figure out the specifics May 20 20:43:00 I see some discrepancies between this and the examples, So I'm fiddling with those May 20 20:43:33 ya know... checkboxes are not a bad idea at all... the onyx ones look fairly nice. I might just do that. May 20 20:45:38 how many items do you need to select? May 20 20:46:09 well... in theory could be hundereds.. but usually it'll be 5-10 out of maybe 100 options May 20 20:46:41 well maybe 1/2 that (50 options) May 20 20:46:57 and it will 99% of the time be on a PC, so performance is not that huge of an issue May 20 20:49:02 I'm sorry I need to head out. I have a whole group of my employees waiting on me that I was not aware were on their way when I asked the question. I'll be back in an hour or soo... Thanks so much.. let me know if anything comes to mind. May 20 20:49:25 k May 20 20:49:52 I did a little bit of clean-up, but http://jsfiddle.net/JS3jw/7/ Trex005 May 20 20:49:58 Well, I'm leaving work. I'll get back on when I reach home May 20 20:50:55 Trex005: (I know you're gone) the issue is that since you have a List as the kind type, you need to define the handlers there, and not just pass the handlers like you would when declaring a list May 20 20:50:57 lol summatusmentis, refresh() is one way to force it. :P May 20 20:51:07 refresh() isn't necessary May 20 20:51:19 I was playing with it May 20 20:51:37 trying to make sure it wasn't doing something stupid with not firing events when created May 20 20:51:54 ah May 20 20:52:36 oh lol May 20 20:52:50 I didn't even notice he was doing the handlers wrong. XD May 20 20:53:05 I looked at it, I didn't realize it would be an issue at first May 20 20:53:57 well anyways, I'll be on later May 20 20:55:03 Trex005: here's one that's closer to your original, I'd pulled some stuff out to simplify, but this one is more similar to yours http://jsfiddle.net/JS3jw/9/ May 20 20:55:28 GodGinrai: thanks for the pointers above, appreciated May 20 20:55:56 yw May 20 21:17:35 back May 20 21:56:54 have you ever played with interactive rows in a list? May 20 21:57:27 long enough to get angry and just use a Repeater May 20 21:58:08 how does prepareRow work? can you then just refer to this.$.item? May 20 22:03:04 I believe that's how it is supposed to work May 20 22:04:02 Here's an example of how to use performOnRow, which is essentially prepareRow and lockRow with your code as a parameter May 20 22:04:03 http://jsfiddle.net/ryanjduffy/Ere3K/4/ May 20 22:08:01 I'm back.... May 20 22:08:06 wb May 20 22:08:06 reading your input... May 20 22:08:23 summatusmentis gave you a good answer earlier May 20 22:08:27 look for his links May 20 22:08:47 interesting, I think I figured it out May 20 22:09:02 prepareRow might be easier though May 20 22:10:12 yea, I think that performOnRow was made to deal w/ all the people who forget to lock the row once they are done :P May 20 22:11:40 summatusmentis, and GodGinrai you guys are AWESOME.... May 20 22:12:31 :) glad to be of help May 20 22:14:55 Trex005: did my responses make sense? May 20 22:15:12 ummmm I THINK I get it... but the working examples work for me May 20 22:17:13 basically Trex, the short of it is this: If you are defining a kind, declare your handlers in a handlers block (handlers: {}). If you are instancing a kind, define your handlers the way you attempted May 20 22:18:09 hey summatusmentis, have you tried bitjs? May 20 22:18:39 I'm looking around for the best way to unrar and unzip in JS and this is the only thing that seems to be coming up for unrar May 20 22:19:07 I haven't tried it, no May 20 22:20:48 k May 20 22:29:53 lol summatusmentis May 20 22:29:59 I just found out May 20 22:30:04 that bitjs May 20 22:30:43 was code that was originally developed for the same purpose that I was searching for unrar and unzip in JS for XD May 20 22:33:55 nice :) May 20 22:34:06 kk, gohometime May 20 22:34:33 k, cya ;) May 20 23:46:19 summatusmentis, in july of last year you were having an issue with scroller and contents not having a fixed width http://logs.nslu2-linux.org/livelogs/enyojs/enyojs.20120710.txt May 20 23:50:19 yes? May 20 23:53:58 Maybe he has an answer for you a year later, summatusmentis ;) May 20 23:57:15 heh May 20 23:57:22 Trex005: did you have a question about it? May 21 00:04:19 I was wondering if you ever found a decent solution May 21 00:04:43 I ended up just making an inner wrapper instead of writing items to the scroller May 21 00:05:00 the best solution is getting fittables to work properly May 21 00:05:03 but then I still need to know fixed height... which I then can recalculate... but it's still annoying :) May 21 00:05:45 I think I ended up mucking around with fittables until they worked, but I'm not sure it's correct May 21 00:12:13 I'm guessing you mean that you set fit:true for your scroller? May 21 00:12:55 no, a few levels up the parent-chain I didn't have fittables set properly May 21 00:13:11 so it wasn't propagating down May 21 00:13:23 I don't remember the specifics anymore May 21 00:13:28 ah May 21 00:14:47 I can't really even think of too many times you would need to write kinds to a scroller directly, to tell you the truth May 21 00:15:16 since if you need it to scroll, normally it's going to be a list of some sort, which you should probably be using a Reoeater for May 21 00:15:29 we dynamically build out a form structure May 21 00:15:53 an HTML form? May 21 00:16:09 not directly May 21 00:16:26 ok May 21 00:17:24 it's the other end of the survey-like thing I was talking about earlier May 21 00:18:14 yea, I was wondering if they were related May 21 00:18:52 we're building a data collection platform May 21 00:19:17 the mobile app was the first bit, (hitting REST APIs) May 21 00:19:45 the stuff I'm working on now is the creation mechanism for what we want people to collect data on May 21 00:20:01 I see May 21 01:40:00 anyone know how I can add a set of components to a list, and have them properly set the content within them? mine seem to be stuck in the default May 21 01:40:30 hrm... care to elaborate? I'm having a hard time picturing what you mean May 21 01:40:45 also, my answers will be a bit slow, since I'm dishing up dinner May 21 01:50:09 I've got a an "editable" list item in a kind, and I'm using that as a list item. When it's got a component that is just storing text, but that doesn't seem to change from the default, and I've tried various published parameters, or setter methods May 21 01:50:20 I _think_ it's related to row locking May 21 01:50:45 I'd use a repeater, but re-orderability is important May 21 01:51:33 ok, so you've basically got something like an enyo.Input in one of your list items, right? May 21 01:52:09 or do you mean like HTML5 editable? May 21 01:52:18 where it's just a div or such that is editable? May 21 01:54:25 there's an HTML5 editable? May 21 01:54:47 I'm doing some weird display: none stuff with a component, and an enyo.input May 21 01:55:20 there is an HTML5 editable, but it would be safer to use actual input fields May 21 01:55:23 they have better support May 21 01:55:33 what is the display: none for? May 21 01:56:33 https://developer.mozilla.org/en-US/docs/Web/HTML/Content_Editable May 21 01:56:36 http://pastie.org/7937237 May 21 01:56:39 That's the editable thing May 21 01:56:45 this is what I'm doing May 21 01:57:38 how does enyo support the editable thing? May 21 01:57:59 enyo doesn't do anything w/ editable May 21 01:58:03 it's just an HTML5 thing May 21 01:58:12 you can use it if you find a nice way to make it work :) May 21 01:59:43 hrm May 21 01:59:48 So btw May 21 02:00:02 you can change the text in the input May 21 02:00:12 but the input's value variable is not changing? May 21 02:00:34 no, the variable changes just fine if I do it manually (with prepareRow/lockRow) May 21 02:00:48 it's just on create that it's not rendering the input properly May 21 02:00:56 s/input/control/ May 21 02:00:58 "cont" May 21 02:01:30 so it should be saying "test" but it is not? May 21 02:01:58 no, it is saying "test", but I've got other stuff in the list structure that takes new input May 21 02:02:27 hrm? May 21 02:02:31 what do you mean? May 21 02:02:31 basically, setting "cont" in the onSetupItem function isn't properly happening May 21 02:02:47 it just always says "test" May 21 02:03:14 can you show me your onSetupItem code? May 21 02:03:44 http://pastie.org/7937250 May 21 02:04:33 I'm guessing the reason setFill was commented was because it wasn't working? May 21 02:04:40 correct May 21 02:04:50 here's the other question May 21 02:04:58 does this.fill even exist for your List? May 21 02:05:07 this.$.oItem.$.cont.setContent(this.fill); May 21 02:05:07 //this.$.oItem.setFill(this.options[index]); May 21 02:05:16 the setFill was using this.options May 21 02:05:21 yes May 21 02:05:24 however your setContent call uses this.fill May 21 02:05:35 check out create() May 21 02:05:46 that's in a different function May 21 02:05:49 oh, wait May 21 02:05:51 *kind May 21 02:06:20 I gotta run for a bit, I'll check that May 21 02:06:23 k May 21 02:21:32 that fixed it, you win May 21 02:21:33 ty May 21 02:22:24 :D May 21 02:22:26 yw **** ENDING LOGGING AT Tue May 21 02:59:58 2013