MobileCRM.UI.DetailViewItems.SeparatorItem.constructor - Resconet/JSBridge GitHub Wiki

Constructs an instance of MobileCRM.UI.DetailViewItems.SeparatorItem object.

Arguments

Argument Type Description
name String Defines the item name.
label String Defines the item label.

This example demonstrates how to get detail view and create new SeparatorItem.

MobileCRM.UI.EntityForm.requestObject(function (entityForm) {
	var detailView = entityForm.getDetailView("General");
	var item = detailView.getItemByName("SectionSeparator");
	if (!item) {
		item = new MobileCRM.UI.DetailViewItems.SeparatorItem("SectionSeparator", "Next Section");
		detailView.insertItem(item, 2); // Insert item on the third place (index is zero-based). Index -1 puts item as the last one.
	}
}, MobileCRM.bridge.alert, null);
⚠️ **GitHub.com Fallback** ⚠️