Documentation

Sidepanel with arbitrary content

After the page is opened in the iframe, slider can display an arbitrary content. For this, the function must be specified in the contentCallback parameter: this function will load the content into the slider via the promise.

BX.SidePanel.Instance.open("crm:activity-view", { 
	contentCallback: function(slider) {                                        
		var promise = new BX.Promise();

		//Emulation of asynchronous operation. Ajax-request can be executed here
		setTimeout(function() {  
			
			//Execute the promise, by passing the slider content to it (string or DOM-element)
			promise.fulfill("content
".repeat(100)); }, 1000); //Callback must return the promise (BX.Promise object type) return promise; } });


© «Bitrix24», 2001-2024
Up