Greetings! I would like to create an Infographic component for a data summary like below:
I would like to be able to select an image for the background from the settings panel...similar to the included Image widget:
I believe this is using:
import { ImageSelector } from 'jimu-ui/advanced/resource-selector';
Solved! Go to Solution.
This solution came full circle for me, this is how you can reference image assets for custom widgets:
import { ImageSelector } from 'jimu-ui/advanced/resource-selector';
<ImageSelector
buttonClassName='my-class-names'
widgetId={id}
buttonLabel={'myButtonLabel'}
buttonSize='sm'
onChange={handleResourceChange}
imageParam={selectedImageParam} />
Good luck!
This solution came full circle for me, this is how you can reference image assets for custom widgets:
import { ImageSelector } from 'jimu-ui/advanced/resource-selector';
<ImageSelector
buttonClassName='my-class-names'
widgetId={id}
buttonLabel={'myButtonLabel'}
buttonSize='sm'
onChange={handleResourceChange}
imageParam={selectedImageParam} />
Good luck!