Skip to content

Commit

Permalink
Add schema for Column
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Sep 18, 2020
1 parent a44ed0f commit b65e4f7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/ColumnsBlock/schema.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
export const ColumnSchema = {
title: 'Column',
fieldsets: [
{
id: 'default',
title: 'Default',
fields: ['column_title'],
},
],
properties: {
column_title: {
title: 'Column title',
},
},
required: [],
};

export const ColumnsBlockSchema = {
title: 'Columns block',
fieldsets: [
Expand All @@ -15,6 +32,7 @@ export const ColumnsBlockSchema = {
coldata: {
title: 'Columns',
type: 'columns',
schema: ColumnSchema,
},
},
required: ['title'],
Expand Down

0 comments on commit b65e4f7

Please sign in to comment.