Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Add simple reference documentation #8

@1fifoto

Description

@1fifoto

Add simple reference documentation describing the layout of the tutorial as a Javascript object in alphabetical order by property. This would greatly help to better understanding the package's capabilities and potential. For example, something as simple as this indented list would help explain the depth and breadth of this package.

  • string property - tutorial object
    • key: string - name of tutorial (used in checkpoint name)
    • complete: object - on completion object
      • on: string - comparison to be evaluated for completion where the string is:
        • 'checkpointReached' - check if checkpoint cookie exists
          • checkpoint: string - checkpoint name
        • 'form_submission' - check if form submitted with specific method and action URL
          • form: object
            • method: string - a regex matching pattern
            • url: string - a regex matching pattern
      • message: string - completion message text, or "paragraphs ``" for multiple paragraph text
      • title; string - completion title
    • steps: array - step objects
      • activeWhen: array - conditions to be met before becoming active
        • compare: string - comparison to be evaluated where the string is:
          • 'url' - match a URL
            • url: string - a regex matching pattern
          • 'inputVal' - check input equals value
            • selector: string - jquery selector string
            • value: string
          • 'inputNotVal' - check input does not equal value
            • selector: jquery string - jquery selector string
            • value: string
          • 'dropdownState' - check dropdown equals state
            • selector: string - jquery selector string
            • state: string
          • 'checkpointComplete' - check if checkpoint cookie exists
            • checkpoint: string property - checkpoint name
          • 'checkpointNotComplete' - check if checkpoint cookie does not exist
            • checkpoint: string - checkpoint name
          • 'either' - OR sub-compare
            • when: array - compare objects
          • 'all' - AND sub-compare
            • when: array - compare objects
      • annotate: string - component annotation text, or "paragraphs ``" for multiple paragraph text
        • annotateAfter: string - put annotation text after this jquery selector object
        • annotateBefore: string - put annotation text before this jquery selector object
        • annotateIn: string - put annotation text in this jquery selector object
        • annotateSkip: string - annotation skip button text
      • announce: string - full-screen announcement text, or "paragraphs ``" for multiple paragraph text
        • announceDismiss: string - announcement dismissal button text
      • editWhileOpen: boolean - allow component editing
      • highlight: string = highlight this jquery selector object
      • highlightBack: string - background color for this highlighted jquery selector object
      • key: string - name of step (used in checkpoint name)
    • title: string - title of tutorial (shown in bottom left control panel)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions