{"size": 532, "ext": "js", "max_stars_repo_path": "src/Others/matomo-mobile-2/matomo-mobile-2/app/widgets/org.piwik.tableviewrow/controllers/title_value.js", "max_stars_repo_name": "JavierCanon/GoogleAnalyticsTracker", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/Others/matomo-mobile-2/matomo-mobile-2/app/widgets/org.piwik.tableviewrow/controllers/title_value.js", "max_issues_repo_name": "JavierCanon/GoogleAnalyticsTracker", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/Others/matomo-mobile-2/matomo-mobile-2/app/widgets/org.piwik.tableviewrow/controllers/title_value.js", "max_forks_repo_name": "JavierCanon/GoogleAnalyticsTracker", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.3448275862, "max_line_length": 70, "alphanum_fraction": 0.6503759398}
/**
 * Matomo - Open source web analytics
 *
 * @link https://matomo.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
 */

var args = arguments[0] || {};

$.title.text = args.title;
$.value.text = args.value;

if (args.hasChild) {
    $.index.hasChild = true;
}

if (args.selectable && OS_IOS) {
    $.row.selectionStyle = Ti.UI.iOS.TableViewCellSelectionStyle.GRAY;
}

exports.changeTitle = function (title)
{
    $.title.text = title;
}

exports.changeValue = function (value)
{
    $.value.text = value;
}