Friday 15 February 2013

canjs - how can can.component returning value to user? -



canjs - how can can.component returning value to user? -

problem: building component need output json object. how can expose output code can phone call component , retrieve value? (eg. getter value)

for e.g. can.component of tree combo defined on here (http://canjs.com/docs/can.component.html) allows select values. how can retrieve selected values can component utilize farther in code ? method homecoming me values selected can reuse later pass function doing other computation.

have @ https://github.com/bitovi/canjs/issues/1209, there are several ways accomplish this. have 3 ways:

pass can.map kid component, sub-component update object use dom events (see 3.2.1 in link above) using can-event callback (see 3.2.3)

canjs canjs-component

No comments:

Post a Comment