To display your own component with an external data list in a pop-up window that users can choose to dynamically retrieve data for smart modules, you can define the parameter “externalSmartElementsLibrary” during the initialization of the plugin:

window.Stripo.init({
   ...,
   externalSmartElementsLibrary: {
        openLibrary(onDataSelectCallback, onCancelCallback) {
/* Put your logic here.
               Call
                  onDataSelectCallback({
                key: value
})
               when the user selects the data from the external library.
               Call
                  onCancelCallback()
               when user close the library without image selection.
*/
        }
    }

Please find a code example here to see how it works.

Did this answer your question?