Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
panelHeader: strings.ResultTypes.EditResultTypesLabel,
panelDescription: strings.ResultTypes.ResultTypesDescription,
enableSorting: true,
label: strings.ResultTypes.ResultTypeslabel,
value: this.properties.resultTypes,
fields: [
{
id: 'property',
title: strings.ResultTypes.ConditionPropertyLabel,
type: CustomCollectionFieldType.string,
required: true,
},
{
id: 'operator',
title: strings.ResultTypes.CondtionOperatorValue,
type: CustomCollectionFieldType.dropdown,
defaultValue: ResultTypeOperator.Equal,
required: true,
options: [
{
key: ResultTypeOperator.Equal,
text: strings.ResultTypes.EqualOperator
},
{
key: ResultTypeOperator.Contains,
text: strings.ResultTypes.ContainsOperator
},
{
key: ResultTypeOperator.StartsWith,
text: strings.ResultTypes.StartsWithOperator
},
{
stylingFields.push(PropertyFieldCollectionData('customTemplateFieldValues', {
key: 'customTemplateFieldValues',
label: strings.customTemplateFieldsLabel,
panelHeader: strings.customTemplateFieldsPanelHeader,
manageBtnLabel: strings.customTemplateFieldsConfigureButtonLabel,
value: this.properties.customTemplateFieldValues,
fields: [
{
id: 'fieldName',
title: strings.customTemplateFieldTitleLabel,
type: CustomCollectionFieldType.string,
},
{
id: 'searchProperty',
title: strings.customTemplateFieldPropertyLabel,
type: CustomCollectionFieldType.dropdown,
options: searchPropertyOptions
}
]
}));
}
}
return stylingFields;
}