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

[v10.1] Binds or unbinds the handler for onClick event on EntityList.

Bound handler is called with the EntityList object as an argument. The EntityList context property contains EntityListClickContext object.

Arguments

Argument Type Description
handler function(entityList) The handler function that has to be bound or unbound.
bind Boolean Determines whether to bind or unbind the handler.
scope Object The scope for handler calls.

This example demonstrates how to handle a click to a clickable/editable cell on entity list. It works only from iFrame placed on entity view.

MobileCRM.UI.EntityList.onClick(function (entityList) {
	/// <param name="entityList" type="MobileCRM.UI.EntityList" />
	var context = entityList.context;
	var eventInfo = JSON.stringify(context.event);
	var entity = context.entities.toString();
	var property = context.propertyName;
	MobileCRM.bridge.alert("Entity: " + entity + " property: " + property + " was clicked.\nEvent info: " + eventInfo);
}, true);
⚠️ **GitHub.com Fallback** ⚠️