Skip to main content
cngx-src documentation

CngxBucket

Interface

projects/common/data/paginate/bucket-paginate.directive.ts

Referenced by#

Import#

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

Description#

A category bucket: a label plus a predicate that decides which items fall into it. The predicate keeps the model content-agnostic - the same directive buckets by letter range, date band, price tier, or any other partition the consumer expresses, without the brain knowing what it is bucketing.

Index#

Properties

Instance Properties#

label#string
Readonly

Human-readable bucket label, e.g. 'A-C'. Rendered as the chip text.

Readonly

Returns true when item belongs to this bucket.