Skip to content

Instantly share code, notes, and snippets.

@estruyf
Created March 11, 2020 20:03
Show Gist options
  • 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