-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hey Bill,
A couple of tweaks for - please update
private _getLists(): Promise {
return this.context.spHttpClient.get(this.context.pageContext.web.absoluteUrl + /_api/web/lists?$filter=Hidden eq false, SPHttpClient.configurations.v1)
.then((response: Response) => {
return response.json();
});
}
to become
private _getLists(): Promise {
return this.context.spHttpClient.get(this.context.pageContext.web.absoluteUrl + /_api/web/lists?$filter=Hidden eq false, SPHttpClient.configurations.v1)
.then((response: SPHttpClientResponse) => {
return response.json();
});
}
Also reference declaring strings
declare interface IJQueryUiStrings {
PropertyPaneDescription: string;
BasicGroupName: string;
JQueryOptions:string;
SharePointOptions:string;
DescriptionFieldLabel: string;
}
within mystrings.d.ts for the group names in the property pane.
I also pulled npm install --save @types/jquery@2 instead of what you had as picked up an error on the same call for another test project.
Otherwise - awesome and helpful for learning!
Cheers
Rich