@websolutespa/payload-plugin-bowl
Version:
Bowl PayloadCms plugin of the BOM Repository
56 lines (55 loc) • 1.18 kB
JavaScript
export const StaticData = [
{
id: 'item-1',
name: 'Test Item 1',
description: 'Description for item 1',
category: 'category-a'
},
{
id: 'item-2',
name: 'Test Item 2',
description: 'Description for item 2',
category: 'category-b'
},
{
id: 'item-3',
name: 'Test Item 3',
description: 'Description for item 3',
category: 'category-a'
}
];
/*
export const StaticData = [{
id: 'id',
name: 'name',
description: 'description',
category: 'category',
}];
*/ export const StaticCollection = {
type: 'withStatic',
slug: 'static_collection',
src: StaticData,
fields: [
{
name: 'id',
label: 'ID',
type: 'text'
},
{
name: 'name',
label: 'Name',
type: 'text'
},
{
name: 'description',
label: 'Description',
type: 'text'
},
{
name: 'category',
label: 'Category',
type: 'text'
}
]
};
//# sourceMappingURL=StaticCollection.js.map