OK folks - after months getting used to the environment and attempting to learn from others rather than ask a stupid question, my question is as follows:
I'm looking to swap a listitem row in a listview with two buttons (ie. removing all text column data and replacing it all with two edit related buttons). I've been toying around with the editable and canEdit booleans without much luck.
View:
<ListView defaultItemTemplate="row" onItemclick="handleClick"> <Templates> <ItemTemplate name="row" height="85dp"> <Label bindId="type" class="type"/> <Label bindId="name" class="name"/> <Label bindId="city" class="city"/> </ItemTemplate> </Templates> <ListSection id="header"> <ListItem type:text="Type A" name:text="Ben" city:text="Houston"/> </ListSection> </ListView>My handleClick function is currently useless so I didn't include it here.
1) Where should I properly declare this list for 'editActions' and 'canEdit'. Could be clear but not seeing it on http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListItem-property-editActions
2) What would you do to swap out all the text labels and replace or animate into their place two buttons (example; 'Edit' and 'Add Info').
Thanks in advance!