@joint/react
    Preparing search index...

    Function useCellId

    • Return cell id from the paper (paper item). It must be used inside renderElement function.

      Returns ID

      • The cell id.
      • If the hook is not used inside the paper context.

      This hook is used to get the cell id from the paper RenderElement. It must be used inside the renderElement function.

      const cellId = useCellId();
      console.log(cellId);