Skip to content

Commit

Permalink
datagrid: major refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Mar 24, 2023
1 parent c2a54bf commit 52ef09a
Show file tree
Hide file tree
Showing 125 changed files with 1,724 additions and 1,483 deletions.
1 change: 1 addition & 0 deletions packages/admin-sandbox/admin/pages/article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const stateOptions = {
export const List = () => <DataGridPage
entities="Article"
itemsPerPage={20}

tile={<DataGridTile
to={`article/edit(id: $entity.id)`}
thumbnailField="image.url"
Expand Down
10 changes: 8 additions & 2 deletions packages/admin/src/components/Auto/AutoGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import { Component, QueryLanguage, Schema } from '@contember/react-binding'
import { DataGrid, DataGridContainerPublicProps, DataGridProps, DeleteEntityButton, GenericCell } from '../bindingFacade'
import {
DataGrid,
DataGridContainerPublicProps,
DataGridProps,
DeleteEntityButton,
GenericCell,
} from '../bindingFacade'
import { LinkButton, RoutingLinkTarget } from '../../routing'
import { AutoCell } from './AutoCell'

export type AutoGridProps =
& DataGridContainerPublicProps
& {
entities: DataGridProps<never>['entities']
entities: DataGridProps<{}>['entities']
createViewLinkTarget?: (entity: string) => RoutingLinkTarget
createEditLinkTarget?: (entity: string) => RoutingLinkTarget
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 52ef09a

Please sign in to comment.