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)
- List UI Element:
- Result: All product entries are immediately removed from the
Shopping Cart Items Liston 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)
- List UI Element:
- Result: The
Search Results Displaylist 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)
- List UI Element:
- Result: All tasks are removed from the
Pending Daily Taskslist, indicating that the list is now clear.