Change logic of display of fields of a reusable component from a plugin

But you can create custom filed based on json, so you can store selection and value in this field and use it to switch your custom view