Skip to main content
cngx-src documentation

CngxSmartDataSourceOptions

Interface

projects/common/data/data-source/smart-data-source.ts

Referenced by#

Import#

import { CngxSmartDataSourceOptions } from '@cngx/common/data'

Description#

Optional customization for CngxSmartDataSource.

Index#

Instance Properties#

searchFn#function
Optional

Custom full-text search function. Receives an item and the current search term; return true to keep the item. Defaults to a case-insensitive match across all primitive-valued properties.

sortFn#function
Optional

Custom sort comparator. Receives two items, the active field key, and direction. Defaults to a locale-aware string comparison.