Tableau Embedding API
    Preparing search index...

    Interface Filter

    An abstract base class for all of the filter types.

    interface Filter {
        fieldId: string;
        fieldName: string;
        filterType: FilterType;
        worksheetName: string;
        getAppliedWorksheetsAsync(): Promise<string[]>;
        getFieldAsync(): Promise<Field>;
        setAppliedWorksheetsAsync(applyToWorksheets: string[]): Promise<string[]>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Returns Promise<string[]>

      the list of worksheet names that have the filter applied.

    • Returns Promise<Field>

      a promise containing the field for the filter.

    • Applies the filter to the specified list of worksheets. If the worksheet(s) do not exist or do not contain the field in their data sources, an exception is thrown.

      Parameters

      • applyToWorksheets: string[]

        list of worksheets to apply the filter on

      Returns Promise<string[]>

      the list of worksheet names that have the filter applied

    Properties

    fieldId: string

    The id of the field being filtered.

    fieldName: string

    The name of the field being filtered. Note that this is the caption as shown in the UI, and not the actual database field name.

    filterType: FilterType

    The type of the filter.

    worksheetName: string

    The parent worksheet.