tags | summary | locale | guid | app_type | platform-version | figma |
---|---|---|---|---|---|---|
runtime-traditionalweb; |
Explore the advanced use cases and CSS selectors for the Flip Content UI Pattern in OutSystems 11 (O11). |
en-us |
478229ef-fead-4fea-be67-f0fdd66c7209 |
traditional web apps |
o11 |
Applies only to Traditional Web Apps.
Element | CSS Class | Description |
---|---|---|
.flip-content | .flip-content.is--hover | When Trigger parameter is Hover |
.flip-content | .flip-content.is--click | When Trigger parameter is Click |
.flip-content | .flip-content.is--click.is--flipped | When FlipContent is flipped |
It is possible to interact with other patterns or trigger actions with FlipContent events. To use the events, create a screen action to hold the event.
-
Create a local Boolean variable and name it "Flipped".
-
Drag the Flip Content pattern into the preview.
-
Set the content in the front and back placeholders.
-
Drag a container into the preview and set the Name to AlertEvent.
-
Drag an If condition into the container and set the condition to "Flipped".
-
Set the content in the True and False branches (for instance, the Alert pattern).
-
Select the FlipContent pattern and in the Events section, create a new screen action to hold the event.
-
Drag the Assign tool in the screen action to assign the Flipped local variable to the isFlipped event variable.
-
Drag the Ajax Refresh node into the screen action and set AlertEvent as the parameter to update the container on the screen. Remove the animation effect.
-
Publish and test.
<iframe src="https://player.vimeo.com/video/1001631534" width="428" height="386" frameborder="0" allow="autoplay; fullscreen" allowfullscreen="">Video demonstrating the interaction with the Flip Content pattern.</iframe>
It is possible to use a button or containers to interact with FlipContent by using a server action ToggleFlipContent.
-
Create a local Boolean variable and name it "Flipped".
-
Drag the FlipContent pattern into preview and set the Name property to FlipContentToggleAction.
-
In FlipContent, set the Trigger to Manual.
-
Set the content in the front and back placeholders.
-
Drag a button into the preview.
-
Set the method to Ajax Submit and create a new screen action.
-
In the screen action, go to Logic tab and drag the ToggleFlipContent server action into the screen action.
-
Set the WidgetId in ToggleFlipContent.
-
Publish and test.
<iframe src="https://player.vimeo.com/video/1001631555" width="428" height="386" frameborder="0" allow="autoplay; fullscreen" allowfullscreen="">Video demonstrating the interaction with the Flip Content pattern.</iframe>