Documentation

landing.block.removecard

landing.block.removecard (lid, block,selector)

This method clones block element. Returns True or an error.

Parameters

Method Description Available from version
lid Landing page ID
block Block ID
selector Block element selector taken from the manifest, with added block element ID.
For example: '.landing-block-card@0'. '0' at the end signifies that we perform an action with the block element that is the first in the succession order.

Note: as soon as you cloned the block element, their counters have changed.

Example

BX24.callMethod(
	'landing.block.removecard',
	{
		lid: 311,
		block: 6057,
		selector: '.landing-block-card@0'
	},
	function(result)
	{
		if(result.error())
		{
			console.error(result.error());
		}
		else
		{
			console.info(result.data());
		}
	}
);


© «Bitrix24», 2001-2024