Skip to main content
12 events
when toggle format what by license comment
Mar 15, 2017 at 19:42 history edited Jason Goemaat CC BY-SA 3.0
Other link must have been hacked, endless popups.
Mar 14, 2017 at 8:00 review Suggested edits
Mar 14, 2017 at 16:36
Apr 8, 2015 at 9:39 review Suggested edits
Apr 8, 2015 at 10:24
Apr 25, 2013 at 7:07 history edited Jason Goemaat CC BY-SA 3.0
fixed jsfiddles with broken ko.mapping url
May 18, 2012 at 14:10 vote accept Adam Levitt
May 17, 2012 at 23:30 comment added Jason Goemaat added those details up front, ko.dataFor and ko.contextFor just need the dom node, which you can get looking at the event in your handler function. $root on the result of contextFor would be your view model
May 17, 2012 at 23:29 history edited Jason Goemaat CC BY-SA 3.0
another example with ko.contextFor and ko.dataFor, cleaned up and put direct answer to question first
May 17, 2012 at 23:26 comment added Adam Levitt Thanks for this (correct) answer, but I'm wondering if there is still a way to access the info out of the context just for future reference?
May 17, 2012 at 23:16 history edited Jason Goemaat CC BY-SA 3.0
another example with ko.contextFor
May 17, 2012 at 22:35 history edited Jason Goemaat CC BY-SA 3.0
deleted 236 characters in body
May 17, 2012 at 22:14 history edited Jason Goemaat CC BY-SA 3.0
added info on knockout click binding
May 17, 2012 at 22:07 history answered Jason Goemaat CC BY-SA 3.0