Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
filterPaneFields.push(...this.buildFilterPaneFields([
{key:'key', text:'Key'},
{key:'text', text:'Text'},
{key:'filterValue', text:'Filterable Value'},
], 'filterValue'));
}
if(this.properties.choiceType === 'list') {
choicesPaneFields.push(
PropertyFieldListPicker('listId', {
label: 'List/Library',
selectedList: this.properties.listId,
includeHidden: false,
orderBy: PropertyFieldListPickerOrderBy.Title,
onPropertyChange: this.onPropertyPaneFieldChanged.bind(this),
properties: this.properties,
context: this.context,
onGetErrorMessage: null,
deferredValidationTime: 0,
key: 'listId',
})
);
//List Details
if(this.properties.listId) {
//If a list has been chosen, we need view details
if(!this._listInfo.has(this.properties.listId)) {
//No view details yet, so go get them
choicesPaneFields.push(
},
{
groupName: "Select Lists",
groupFields: [
PropertyPaneToggle("includeAdminSelectedLists", {
label: "Inclued/exclude selected lists",
onText: "Include selected lists",
offText: "Exclude selected lists",
}),
PropertyFieldListPicker("adminSelectedLists", {
label: 'Select lists to include/exclude',
selectedList: this.properties.adminSelectedLists,
includeHidden: this.properties.showHiddenLists,
orderBy: PropertyFieldListPickerOrderBy.Title,
disabled: false,
onPropertyChange: this.onPropertyPaneFieldChanged.bind(this),
properties: this.properties,
context: this.context,
onGetErrorMessage: null,
deferredValidationTime: 0,
key: 'listPickerFieldId',
multiSelect: true
}),
]
}
]
}
]
};
}