Documentation

BX24.init

void BX24.init(Function callback)

Adds a callback function to the list of called handlers when the library has been fully initialized and ready. When initializing, the library requests data from the parent frame. Certain actions like accessing the application settings or current user permission rights, sending REST requests are unavailable until the library has completed initial data exchange with the parent frame.

Example

BX24.init(function(){
	console.log('Init done!', BX24.isAdmin());
});



© «Bitrix24», 2001-2024