Titanium JIRA Archive
Alloy (ALOY)

[ALOY-491] Alloy bind() function for creating data binding in code

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusResolved
ResolutionDuplicate
Resolution Date2014-07-07T16:33:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsModels, Runtime
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2013-01-29T16:54:12.000+0000
Updated2018-03-07T22:25:48.000+0000

Description

The only way to create data binding at this point is in markup. It would be nice to be able to create this binding in code as well. I'll have to do some thinking, research, and solicitation of feedback, but it might look something like this:
Alloy.bind($.someLabel, 'text', Alloy.Models.someModel, 'modelProperty');
It should be a function on the Alloy namespace somewhere, not on the proxies to avoid the overhead of adding functions to proxy objects.

Comments

  1. Tim Poulsen 2014-07-07

    Duplicate of ALOY-931

JSON Source