Discussion

192
Views
kants2 Member since 2017 1 post
PEGA
Posted: 3 months ago
Last activity: 3 months 4 weeks ago

USER INTERFACE - OOTB BANNER HELPER CLASSES IN PEGA 8.5

Feature: New banner helper classes to achieve the standard banner UI designs.

Availability: By default, we are shipping OOTB for the following applications in Pega 8.5.

  • UI-Kit
  • Theme - Clarity
  • Theme - Cosmos

Helper Classes: When applied the following banner helper classes, respective icons, and background color are shown by default.

Different variants of banner helper class

Usage:

Step-1: Drag and drop a Dynamic layout and apply any banner helper class from the helper class picker as per the business requirement.

[Fig 1: Empty Dynamic layout with inline layout format and default container format]

Empty dynamic layout and inline layout format and default container format

 

[Note: Adoption Teams can change the layout format to default if required to show the error list in stacked mode or any other format as per the business requirement following the best practices ]

1. Go to the dynamic layout presentation tab and check the “optimize layout” checkbox. 2. Click on the “Display advanced presentation tab” checkbox and click on the gear icon in the “content CSS class”  and select “banner banner-urgent” from the helper class picker.

[Fig 2: Dynamic layout presentation tab settings ]

Dynamic layout presentation tab settings

 

Step-2: Drag and drop related section or any message etc.. in the Dynamic layout, we have created in the above step.

[Fig 3: Message inside the Dynamic Layout]

Message inside the Dynamic Layout

[Note: The message can be anything as per the business requirement]

message styling 
  • Apply flex-align-center padding-l-1x Helper class to the message element such that it will align vertically center and spacing to left.

[Note: Helper classes applied in the above screenshot can be anything as per the UI requirement]

Click on save and run the UI.

[Fig 4: Banner component with banner banner-urgent helper class]

Banner component with banner banner-urgent helper class

Congratulations: You have successfully applied the banner helper class.

 

Step-3[Optional] :

App teams can have a close icon and CTA as shown in the below screenshot.

This is similar to step-2, drag and drop close icon or any CTA(Button or Link) item and apply helper classes to achieve the UI.

  • Close icon: This is used to dismiss the banner when the user clicks on it. Action set should be taken care of by the Adoption teams and it should be aligned to the top right corner.
  • CTA (call to action): CTA can be used to trigger any action when the user clicks on it.

cosmos banner design

 

 

Pega Platform 8.5 User Interface Front-End Developer
Share this page LinkedIn