-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce forwarded props to selection-props
- Loading branch information
Showing
5 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
demo/admin/src/products/future/SelectProductsGrid.cometGen.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { future_GridConfig as GridConfig } from "@comet/cms-admin"; | ||
import { GQLProduct } from "@src/graphql.generated"; | ||
|
||
export const SelectProductsGrid: GridConfig<GQLProduct> = { | ||
type: "grid", | ||
gqlType: "Product", | ||
fragmentName: "SelectProductsGridFuture", | ||
readOnly: true, | ||
selectionProps: true, | ||
columns: [ | ||
{ type: "text", name: "title", headerName: "Titel", minWidth: 200, maxWidth: 250 }, | ||
{ type: "text", name: "description", headerName: "Description" }, | ||
{ type: "number", name: "price", headerName: "Price", maxWidth: 150 }, | ||
{ type: "staticSelect", name: "type", maxWidth: 150, values: [{ value: "Cap", label: "great Cap" }, "Shirt", "Tie"] }, | ||
{ type: "date", name: "availableSince", width: 140 }, | ||
{ type: "dateTime", name: "createdAt", width: 170 }, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters