MobileCRM.UI.EntityList.setPrimaryCommand - Resconet/JSBridge GitHub Wiki

Overrides the entity list's primary command button.

Arguments

Argument Type Description
labels Array/String An array of labels or single label (e.g. "New").
callback Function A callback which is called when command is launched.
scope Object A scope, in which the callback has to be called.