Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16454] TiAPI: Customize button title similar to TableView deleteButtonTitle

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.1
Fix Version/sn/a
ComponentsTiAPI
Labelsdelete, listitem, listview, tableView
ReporterCraig Jones
AssigneeUnknown
Created2014-02-11T14:42:53.000+0000
Updated2018-02-28T20:03:14.000+0000

Description

Unable to find it in the documentation but I use 'deleteButtonTitle' when swiping on an editable TableView so I can customize the label 'Delete' to something else, eg: 'Add', 'Remove', 'Hide' etc.. TableView example:
var tableView = Ti.UI.createTableView({
    data:data,
    deleteButtonTitle: "Hide", //L("hide")
    editable:true
}); 
It would be great to have this feature on a ListView... Well, would be even better to have it on a 'ListItem' so that it can be customizable on an item/row rather than the same label across a single list. As all the features of a TableView haven't been implemented on a ListView yet, I'm having to slowly migrate, however would be useful (if this feature is possible to implemented) that it works with ListView's main/child templates also. Many thanks @Hardbyte

Comments

  1. Ritu Agrawal 2014-02-12

    ListView does not implement all methods and properties of TableView intentionally so that not to have the similar performance problems with the TableView. Having said that, I am moving this feature request to engineering for further evaluation and prioritization.
  2. Ed 2014-03-06

    We would like to have deleteButtonTitle supported on the ListView as well. I have a localized app, and need to change the "Delete" label to other languages. On a side note, "deleteButtonTitle" should also be documented for TableView. It's been supported for a few years, but still not in the docs. Thx!
  3. Danny Pham 2015-05-17

    My implementation in TiUIListView.m: https://gist.github.com/danny005/069451cbe13e1b8c5062
       var item = {
       	...
       	properties: {
       		...
       		deleteButtonTitle: 'Your title'
       	}
       };
       
  4. Hans Knöchel 2015-11-12

    [~crossbits]: Can you submit a PR to cover your changes + docs just like [here](https://github.com/appcelerator/titanium_mobile/pull/7430/files).

JSON Source