Documentation

landing.block.changeAnchor

landing.block.changeAnchor(
   lid,
   block,
   data
)

The method modifies symbol code of an anchor. The standard anchor format якорь: #block12345, where 12345 – block ID.

Parameters

Method Description Available from version
lid Landing page ID
block Block ID.
data Anchor symbol code.

Example

BX24.callMethod(
   'landing.block.changeAnchor',
   {
      lid: 3496,
      block: 29356,
      data: 'about'
   },
   function (result)
   {
      if (result.error())
      {
         console.error(result.error());
      }
      else
      {
         console.info(result.data());
      }
   }
);


© «Bitrix24», 2001-2024