Use slicer to filter table
Refer to the following example code to see how to use slicer to do filtering.