Having two Interaction managers


#1

Hi, I have an Interaction Manager in my application and for certain widgets I can open a configuration modal, in this modal I need to graphically show the filters of the selected widget, but I don’t want to get the filters and then replicate the Interaction Manager styles to show them, these filters are just for display they don’t need to be interactive, is there an easy way to do this?


#2

Actually you can get the actual IM template using an api function, let me show you:

const IM = cf.getIManager();
const api = IM.get('api')

// then obtain the template for the filters you want
const template = api.getFilterTemplate(['filter_1', 'filter_2'])

This will give you a string html template that you can use.


#3

It looks easy, I’ll try it, thanks