Manuel_Rodrigues
Manuel_Rodrigues

Reputation: 560

change text of tableviews delete button titanium

how can I change the text of the red delete button of a tableview?

this is my tableview:

    var tableView = Ti.UI.createTableView({
        editable : true,
        backgroundColor : 'transparent',
        separatorColor : 'transparent',
        height : Ti.UI.SIZE,
    });

then i have the event listener for the 'DELET' event. but i need to change the text of the button from 'DELET' to 'X'

how can i du that?

I'm not using the alloy folder

Upvotes: 0

Views: 98

Answers (1)

Thomas Lemaitre
Thomas Lemaitre

Reputation: 1154

You can set deleteButtonTitle property of the TableView : http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableViewRow-property-deleteButtonTitle

Upvotes: 1

Related Questions