Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KayeeNL/c2708d4ed61ed28bf52263fb3a9c42da to your computer and use it in GitHub Desktop.
Save KayeeNL/c2708d4ed61ed28bf52263fb3a9c42da 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',
minItems: 2,
items: {
type: 'string',
enum: ['Sitecore', 'XM Cloud', 'BYOC', 'JSS', 'Next.js'],
},
uniqueItems: true,
},
percentage: {
title: 'Percentage',
type: 'integer',
minimum: 0,
maximum: 100,
description: 'Please fill in a number between 0 and 100',
},
firstName: {
title: 'First Name',
type: 'string',
minLength: 2,
maxLength: 50,
},
lastName: {
title: 'Last Name',
type: 'string',
},
columnsCount: {
title: 'Columns count',
type: 'number',
},
},
required: ['firstName', 'lastName'],
ui: {
tags: {
'ui:widget': 'checkboxes',
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment