Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TadInfo

TadInfo (Library)

This is a class that provides access to items and sets of information in a variety of formats.

Hierarchy

  • TadInfo

Index

Constructors

constructor

  • Creates new instance of TadInfo class.

    Returns TadInfo

Methods

TA_versionInfo

  • TA_versionInfo(p_strMarker?: string): string
  • Returns basic version information on the app and device. This includes the Drafts version, OS version and device type, each of which is returned on a separate line.

    Parameters

    • Optional p_strMarker: string

      Specifies text to wrap around the information descriptions. Defaults to an empty string.

      // Example
      alert(tadInfo.TA_versionInfo("**"));
      // Displays something formatted like this:
      // **Drafts Version:** 19.2.2
      // **OS Version:** macOS Version 10.15.3 (Build 19D76)
      // **Device:** Mac
      // **Pro Licensed:** Yes
      

    Returns string

TA_versionTemplateTags

  • TA_versionTemplateTags(): void
  • Puts basic version information on the app and device into custom template tags.

    • version - Drafts app version.
    • isPro - Drafts license.
    • systemname - Device OS.
    • systemversion - Device OS version.
    • model - Device model.
      // Example
      tadInfo.TA_versionTemplateTags();
      

    Returns void