**** BEGIN LOGGING AT Fri Oct 24 03:00:01 2014 Oct 24 19:17:21 Is there a trick to using Onyx togglebuttons in list items, or is it simply not possible due to the flyweight repeater pattern? Oct 24 19:17:53 IIRC, there is a trick Oct 24 19:17:58 but instead Oct 24 19:18:13 you should just use onyx togglebuttons in a DataList Oct 24 19:18:34 that way you can bind the state of the button to the backing Collection Oct 24 19:18:59 I'd prefer to do that Oct 24 19:19:15 but unless I missed something, datalists don't support swipable yet Oct 24 19:19:39 oh, you need swipable? Oct 24 19:20:37 ya, I'm doing a list of feeds with swipe to delete functionality Oct 24 19:21:28 at least, that is the current UI paragigm :) Oct 24 19:21:34 paradigm* Oct 24 19:22:08 So you want to be able to toggle them on or off Oct 24 19:22:12 *and* delete them Oct 24 19:22:33 yup, easy to do one or the other, but not both :P Oct 24 19:23:11 I see Oct 24 19:23:16 one alternative that I was thinking of was to wire up an iconbutton with red light/green light functionality Oct 24 19:24:07 IIRC, buttons should work in a list Oct 24 19:24:52 Aressel: why not just use the "selection" functionality built into enyo.List? Oct 24 19:25:11 ? Oct 24 19:25:38 enyo.List has multiSelect: false; Set that to true and you can select multiple items Oct 24 19:26:23 it also has toggleSelected: false; If you set it to true, I believe it adds a "selected" class to selected items Oct 24 19:26:41 ah, when I'm loading my data, set selected on the feeds that are active Oct 24 19:26:53 I think so Oct 24 19:27:02 and then let the user turn them on/off just by tapping on them Oct 24 19:27:16 hmm, I'll have to think about that. Thanks for the idea! Oct 24 19:27:16 I haven't really messed with the selected stuff in the regular enyo.List (I avoided lists until the data stuff came out) Oct 24 19:27:19 yw Oct 24 19:27:39 getSelection will return the selection state for the list Oct 24 19:27:43 Once you wrap your head around lists, they aren't *taht* bad Oct 24 19:27:48 isSelected(index) will return if it is selected Oct 24 19:28:03 select() and deselect() can programmatically select and deselect your rows Oct 24 19:32:11 hi all Oct 24 19:34:30 hey Semanticfire_2 **** ENDING LOGGING AT Sat Oct 25 03:00:01 2014