getSections: Public JS API for Actions
getSections
Async API to get a section's markup rendered on each item of a list page (page of type Code-Pega-List).
Syntax
pega.api.ui.actions.getSections(sectionName, contextList, callback);
Parameters
- sectionName: String name of the section whose markup is desired.
- contextList: String reference to the list page whose pxResults entries become the context of rendering the section
- callback: The function to be called with the resulting JSON
Return value
Returns a JSON string in the form of an array, entries being the string HTML markup of the section rendered on each item in the supplied list page.["<div data-ui-meta=\"{'type':'Section'......</div>",
"<div data-ui-meta=\"{'type':'Section'......</div>"]