Ask AI
Skip to main content

Clear a vertical list

Function: Clear a vertical list

This action removes all items from a specified vertical list component on your application screen. It's useful for resetting a list, preparing it for new data, or simply emptying its contents.

Input

  • List UI Element (PART): The specific vertical list component on your page that you want to clear. You will need to select this element from your application's UI builder.

Output

This action does not produce a direct output value. Instead, it modifies the selected vertical list UI element by removing all its current contents.

Execution Flow

Real-Life Examples

Example 1: Resetting a Shopping Cart Display

  • Scenario: After a customer completes an order, you want to clear the displayed items in their shopping cart list on the confirmation page, preparing it for a new shopping session.
  • Inputs:
    • List UI Element: Shopping Cart Items List (the vertical list displaying products in the cart)
  • Result: All product entries are immediately removed from the Shopping Cart Items List on the screen, making it appear empty.

Example 2: Clearing a Search Results List

  • Scenario: A user performs a new search, and before displaying the new results, you want to clear the previous search results from a vertical list to avoid confusion.
  • Inputs:
    • List UI Element: Search Results Display (the vertical list showing previous search outcomes)
  • Result: The Search Results Display list is emptied, ready to be populated with the new search findings.

Example 3: Emptying a Task List After Completion

  • Scenario: At the end of the day, a manager wants to mark all daily tasks as completed and clear the "Pending Tasks" list on their dashboard.
  • Inputs:
    • List UI Element: Pending Daily Tasks (the vertical list showing tasks yet to be done)
  • Result: All tasks are removed from the Pending Daily Tasks list, indicating that the list is now clear.