Created
March 11, 2020 20:03
-
-
Save estruyf/fe3e11a381adc31320abcdc1bb3707d1 to your computer and use it in GitHub Desktop.
Dynamically loading resources in loadPropertyPaneResources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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