Tidy 5e Sheets API
    Preparing search index...

    Type Alias TabEnabledCallbackFunctionOverrideOptions

    Options for updating the conditions under which the tab should be shown.

    type TabEnabledCallbackFunctionOverrideOptions = {
        mode?: "and" | "or" | "overwrite";
        predicate: (context: any) => boolean;
    }
    Index

    Properties

    Properties

    mode?: "and" | "or" | "overwrite"

    The logical handling of your predicate and the original tab's predicate.

    • "and": requires the original tab visibility conditions as well as your additional conditions
    • "or": show the tab when the original tab visibility conditions or your additional conditions are true
    • "overwrite": discard the original tab condition and exclusively use your conditions
    predicate: (context: any) => boolean

    A function which returns a boolean true or false to indicate whether to show the tab