AddContentHTML method: Tile class

Syntax

AddContentHTML(&sHTML, &sStyleClass)

Description

Invoke the AddContentHTML method to add HTML content to the Tile.ContentArray including style classes (semi-colon separated list) to be applied by the Grouplet API on the container of the HTML structure.

Parameters

Parameter Description

&sHTML

Specifies the HTML content as a String value.

&sStyleClass

Specifies the style class or style classes separated by a semi-colon as a String value.

Returns

None.

Example

method LoadSection
   /+ Extends/implements PTNUI:Dynamic:DynamicLoader.LoadSection +/
   /*AddOnLoadScript("console.log(""LoadSection for "",""" | EscapeHTML(%This.Section.SectionName) | """);"); */
   Local PTNUI:Model:Tile &oTile;   
   &oTile = %This.CreateTileUsingTab("", "Life Events");
   &oTile.RowNum = %This.GetNextRowNumber();
   &oTile.GltImageName = Image.QE_LIFE_EVENTS;
   %This.SetupFluidTarget(&oTile, GenerateComponentContentURL(%This.Tab.PortalName, %This.Tab.NodeName, MenuName.MYMENU, %Market, Component.MYCOMPONENT, Page.MYPAGE1, %Action_UpdateDisplay));
   &oTile.AddContentText("Last Accessed: 31 May 2024", "psc_secondary-text psc_tile_livedata");
   &oTile.AddContentText("Pending: Document Submissions", "psc_secondary-text");
   &oTile.AddContentHTML("<span class='ps-text psc_emphasis-text psc_font-size12em'>80&percnt; </span><span class='ps-text'>Completed</span>", "");
   &oTile.IsSmallFFOptimized = 0;
   %This.AddTileToSection(&oTile);
end-method;