CollectionFilter

CollectionFilter は、複数条件で Collection をフィルターするためのコンポーネントです。

基本的な使い方

import { CollectionFilter } from '@nocobase/client-v2';

<CollectionFilter
  collection={collection}
  t={t}
  onChange={(filter) => {
    listRequest.run({ filter });
  }}
/>;

API

パラメータ説明
collection`Collectionundefined`
initialValueRecord<string, unknown>初期 filter 値
onChange(filter) => void値変更時のコールバック
t(key, options?) => string翻訳関数
filterableFieldNamesstring[]フィールドの許可リスト
nonfilterableFieldNamesstring[]フィールドのブロックリスト
noIgnoreboolean許可リスト制限をスキップする
buttonTextReact.ReactNodeカスタムボタン文言
showCountboolean条件数を表示するかどうか
popoverPropsPopoverPropsAntd Popover に渡す props
buttonPropsButtonPropsAntd Button に渡す props
popoverMinWidthnumberPopover 内容の最小幅

関連リンク