Skip to main content

sdk.contextualpanelbasedonselection.objecttypes

Home > @kittl/sdk > ContextualPanelBasedOnSelection > objectTypes

ContextualPanelBasedOnSelection.objectTypes property

A set of object types that this component will show for. Because currently selected object can be an array, if _any_ item in the array exists in this set, we will show this button

It's primarily used for performance improvements so we are not calling "useIsShowing" for hundreds of components

Signature:

objectTypes?: Set<ObjectType>;