Skip to content

useSelectionState ​

useSelectionState() fornisce informazioni reattive su presenza e numero degli oggetti selezionati, oggetto principale e relativo Type: Instance, Component o Group.

ts
const {
  selectedIds,
  hasSelection,
  selectedNode,
  selectedCount,
  selectedNodeType,
  isInstance,
  isComponent,
  isGroup,
  canCreateComponentSet,
} = useSelectionState()

Vedi anche ​

Released under the MIT License.