Do you mean the switch widget? If yes, I propose that you create the boolean attribute ‘Active’ inside desired entity and connect it with the switcher. Here you can find more informations https://docs.mendix.com/appstore/widgets/switch/ and also link to the marketplace https://marketplace.mendix.com/index3.html
Create a Boolean attribute in the entity. Use the switch on the UI and use that attribute.