Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

add a function to set a title #53

Merged
merged 1 commit into from
Nov 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions nl.fokkezb.pullToRefresh/controllers/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ function show() {
}
}

function setTitle(text){
if (text.apiName && text.apiName == 'Ti.UI.AttributedString'){
refreshTitle = text;
} else {
refreshTitle = Ti.UI.createAttributedString({
text: text
});
}

refreshControl.title = refreshTitle;
}
exports.setTitle = setTitle;

function onRefreshstart() {

$.trigger('release', {
Expand Down