Show TOC

Client-Side Layout APILocate this document in the navigation structure

Use

The client-side Layout API enables you to control page layout.

Methods pb_getCurrentLayout()

Gets the current layout by triggering the passCurrentLayout EPCM event with a callback function that stores the returned value. Before calling this method, subscribe to the event.

EPCM.subscribeEventReliable("urn:com.sap.portal.ajaxpagebuilder", "passCurrentLayout", storeLayoutCallback);

function storeLayoutCallback ()
{
//Store the layout
}
pb_setLayout(XML, ID)

Sets the page layout.

Parameters

  • XML: an XML representation of the layout, such as <table width='100%'><tr><td width='50%' colspan='1'/><td width='50%' colspan='1'/></tr></table>

  • ID: the ID of the layout, such as layout_2column