Skip to content

Tweaks to the Wiki #1

@RichBurdes1

Description

@RichBurdes1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions