Created
March 18, 2024 19:07
-
-
Save KayeeNL/c2708d4ed61ed28bf52263fb3a9c42da 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', | |
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