Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KayeeNL/69d5453673e18069fcda579b1fd22544 to your computer and use it in GitHub Desktop.
Save KayeeNL/69d5453673e18069fcda579b1fd22544 to your computer and use it in GitHub Desktop.
FEAAS.External.registerComponent(MyByocComponent, {
name: 'MyByocComponent',
properties: {
title: {
title: 'Title',
type: 'string',
enum: ['Mr', 'Mrs', 'Miss', 'Ms', 'Dr'],
description: 'Please select an appropriate title',
},
tags: {
type: 'array',
title: 'Tags',
items: {
type: 'string',
enum: ['Sitecore', 'XM Cloud', 'BYOC', 'JSS', 'Next.js'],
},
uniqueItems: true,
},
firstName: {
title: 'First Name',
type: 'string',
},
lastName: {
title: 'Last Name',
type: 'string',
},
columnsCount: {
title: 'Columns count',
type: 'number',
},
},
ui: {
tags: {
'ui:widget': 'checkboxes',
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment