Created
March 18, 2024 18:12
-
-
Save KayeeNL/495fdbfac8c0c898bdec5d3584f46235 to your computer and use it in GitHub Desktop.
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
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, | |
}, | |
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