Ask AI
Skip to main content

Clear a vertical list

Function: Clear a vertical list

This function allows you to quickly remove all items from a specific vertical list component on your application's screen. It's useful when you need to reset a list, prepare it for new data, or simply empty its contents.

Input

  • List UI element: This is the specific vertical list component on your application's page that you want to clear. You will need to select this component directly from your application's design view. This input is required.

Output

This function does not produce any direct output values. Its effect is a change within your application: the selected vertical list will become empty.

Execution Flow

Real-Life Examples

Here are some examples of how you might use the "Clear a vertical list" function in your application:

  1. Resetting a Shopping Cart:

    • Inputs:
      • List UI element: "Shopping Cart Items" (a vertical list displaying products in a user's cart)
    • Result: After a user completes their purchase, this function can be triggered to empty the "Shopping Cart Items" list, preparing it for their next shopping session.
  2. Filtering Search Results:

    • Inputs:
      • List UI element: "Search Results Display" (a vertical list showing items matching a search query)
    • Result: Before a new search is performed, you might use this function to clear the previous "Search Results Display" list, ensuring that only the new, relevant results are shown.
  3. Clearing a Task List:

    • Inputs:
      • List UI element: "Daily Tasks" (a vertical list showing a user's to-do items for the day)
    • Result: At the end of the day, or when a user wants to start fresh, this function can be used to clear all completed tasks from the "Daily Tasks" list, leaving it empty for new entries.