Skip to content

Instantly share code, notes, and snippets.

@estruyf
Created March 11, 2020 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estruyf/fe3e11a381adc31320abcdc1bb3707d1 to your computer and use it in GitHub Desktop.
Save estruyf/fe3e11a381adc31320abcdc1bb3707d1 to your computer and use it in GitHub Desktop.
Dynamically loading resources in loadPropertyPaneResources
/**
* Load property pane resources
*/
protected async loadPropertyPaneResources(): Promise<void> {
PropertyPaneHelpers.setSpinner({
bgColor: "white",
spinnerProps: {
getStyles: () => {
return {
circle: {
height: 80,
width: 80
}
};
}
}
});
// Write here the code you want to add to load your resources
PropertyPaneHelpers.clearSpinner(200);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment