Network selector
![](https://docs.cspr.click/~gitbook/image?url=https%3A%2F%2F4098787943-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FMwTFKCda4irtFhY9tqGt%252Fuploads%252Fgit-blob-3a32e786fabf9896fe51797242c9fd424af02159%252Fimage%2520%282%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=7f30c54a&sv=1)
If your application can switch between Mainnet and Testnet networks you may want to add the network selector widget to the CSPR.click navigation bar.
Network selector set up
Define an array with the list of networks your application supports:
Then, add this settings object to the UI initialization defined before:
Customize the network icons
You can also specify your custom icons for each of the networks:
Last updated