Skip to content

useSelectionState ​

useSelectionState() udostępnia informacje o obecności i liczbie zaznaczonych obiektów, obiekcie głównym oraz o tym, czy jest on egzemplarzem, komponentem albo grupą.

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

Zobacz też ​

Released under the MIT License.