UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

28 lines (27 loc) 1.85 kB
import { User } from "../../types"; import { EntityCollectionTableProps } from "./EntityCollectionTableProps"; /** * This component is in charge of rendering a collection table with a high * degree of customization. * * This component is used internally by {@link EntityCollectionView} and * {@link useReferenceDialog} * * Please note that you only need to use this component if you are building * a custom view. If you just need to create a default view you can do it * exclusively with config options. * * If you want to bind a {@link EntityCollection} to a table with the default * options you see in collections in the top level navigation, you can * check {@link EntityCollectionView}. * * The data displayed in the table is managed by a {@link EntityTableController}. * You can build the default, bound to a path in the datasource, by using the hook * {@link useDataSourceTableController} * * @see EntityCollectionTableProps * @see EntityCollectionView * @see VirtualTable * @group Components */ export declare const EntityCollectionTable: <M extends Record<string, any> = any, USER extends User = any>({ className, style, forceFilter, actionsStart, actions, viewModeToggle, title, tableRowActionsBuilder, uniqueFieldValidator, getPropertyFor, onValueChange, selectionController, highlightedEntities, onEntityClick, onColumnResize, initialScroll, onScroll, onSizeChanged, textSearchEnabled, hoverRow, inlineEditing, additionalFields, displayedColumnIds, defaultSize, properties, tableController, filterable, sortable, endAdornment, AddColumnComponent, AdditionalHeaderWidget, additionalIDHeaderWidget, emptyComponent, getIdColumnWidth, onTextSearchClick, textSearchLoading, enablePopupIcon, openEntityMode, onColumnsOrderChange, hideToolbar }: EntityCollectionTableProps<M>) => import("react/jsx-runtime").JSX.Element;