Your mistake:
click: function() {actionListViewModel.selectedActionId(id)}
actionListViewModel is a constructor function, but you act as if it were an object.
See this forked jsFiddle . This line that defines the constructor function
function actionListViewModel () {
was modified as an instance of a new object created by calling an anonymous constructor function.
var actionListViewModel = new function () {
and this line where you created an instance of a previously defined function
ko.applyBindings(new actionListViewModel());
, ,
ko.applyBindings(actionListViewModel);
viewModel = new actionListViewModel();, , viewModel actionListViewModel.