File

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

Description

Definition of the filter in the StarkTableComponent

Index

Properties

Properties

columnName
columnName: string
Type : string

Name of the column to filter.

filterPosition
filterPosition: MenuPositionY
Type : MenuPositionY
Optional

The position where the column filter box should be displayed.

Default: "below"

filterValue
filterValue: string
Type : string
Optional

Value of the filter.

The following wildcards are supported:

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

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

resetFilterOnDataChange
resetFilterOnDataChange: boolean
Type : boolean
Optional

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

Default: false.

import { LegacyMenuPositionY as MenuPositionY } from "@angular/material/legacy-menu";

/**
 * Definition of the filter in the {@link StarkTableComponent}
 */
export interface StarkTableColumnFilter {
	/**
	 * Name of the column to filter.
	 */
	columnName: string;

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

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

	/**
	 * The position where the column filter box should be displayed.
	 *
	 * Default: `"below"`
	 */
	filterPosition?: MenuPositionY;
}

results matching ""

    No results matching ""