Configuration - AndersMalmgren/Knockout.Concurrency GitHub Wiki

  • You can override the default configuration by calling the init method
    ko.concurrency.init({ containerClass: "customClass"});
  • You can also override default settings for each individual extender
    ko.observable().extend({ concurrency: { containerClass: "customClass" });
  • Available options
Option Default Function
containerClass ‘concurrency’ Adds a class name to the outer element.
takeLocalButtonTitle ‘Take local’ Sets the ‘take local’ button mouse over popup.
takeLocalButtonClassName ‘take-local’ Adds a class to the ‘take local’ button element.
takeRemoteButtonTitle ‘Take server’ Sets the ‘take server’ mouse over popup.
takeRemoteButtonClass ‘take-server’ Adds a class to the ‘take server’ button element.
itemAddedCaption ‘Added’ Sets the caption for when an array item has been added.
itemDeletedCaption ‘Deleted’ Sets the caption for when an array item has been deleted.
autoInjectViewForArrays true When set to true the engine will inject the concurrency view for each item in the colection when set to false you need to bind it yourself.
presenter null When set this function will be used to present conflicted value.
function (value) { return value ? "Yes" : "No"; } 

Typically used for a individual extender
⚠️ **GitHub.com Fallback** ⚠️