File

src/modules/table/entities/table-filter.intf.ts

Description

Represents the column filtering options of the StarkTableComponent.

Index

Properties

Properties

columns
columns: StarkTableColumnFilter[]
Type : StarkTableColumnFilter[]
Optional

Array of StarkTableColumnFilter objects that define column filters

filterPosition
filterPosition: MenuPositionY
Type : MenuPositionY
Optional

The position in which the global filter box for the table should be displayed.

Default: "below"

globalFilterPresent
globalFilterPresent: boolean
Type : boolean
Optional

Whether or not to display the global filter.

Default: true.

globalFilterValue
globalFilterValue: string
Type : string
Optional

Value of the filter for all displayed columns.

The following wildcards are supported:

  • * to match any character(s)
  • ? to match one character

Use \* and \? to match exactly the characters "*" and "?"

resetGlobalFilterOnDataChange
resetGlobalFilterOnDataChange: boolean
Type : boolean
Optional

Whether the filter in the StarkTableComponent must be reset when the data changes.

Default: false.

import { StarkTableColumnFilter } from "./table-column-filter.intf";
import { LegacyMenuPositionY as MenuPositionY } from "@angular/material/legacy-menu";

/**
 * Represents the column filtering options of the {@link StarkTableComponent}.
 */
export interface StarkTableFilter {
	/**
	 * Whether or not to display the global filter.
	 *
	 * Default: `true`.
	 */
	globalFilterPresent?: boolean;

	/**
	 * Value of the filter for all displayed columns.
	 *
	 * The following wildcards are supported:
	 * - `*` to match any character(s)
	 * - `?` to match one character
	 *
	 * Use `\*` and `\?` to match exactly the characters `"*"` and `"?"`
	 */
	globalFilterValue?: string;

	/**
	 * Array of {@link StarkTableColumnFilter} objects that define column filters
	 */
	columns?: StarkTableColumnFilter[];

	/**
	 * Whether the filter in the {@link StarkTableComponent} must be reset when the data changes.
	 *
	 * Default: `false`.
	 */
	resetGlobalFilterOnDataChange?: boolean;

	/**
	 * The position in which the global filter box for the table should be displayed.
	 *
	 * Default: `"below"`
	 */
	filterPosition?: MenuPositionY;
}

results matching ""

    No results matching ""