Kvaser CanKing GUI Extensions SDK - v7.5.1
    Preparing search index...

    Function useProjectData

    • A hook for data that should be saved to the current project.

      Type Parameters

      • T

      Parameters

      • id: number

        The unique id of the view.

      • defaultValue: T | (() => T)

        The default value or a function that returns the default value.

      Returns {
          projectData: T;
          projectDataIsInitialized: boolean;
          setProjectData: Dispatch<SetStateAction<T>>;
      }

      An object with a flag indicating if the project data has been initialized, the current project data and a setter callback.