HelpPage class

Constructors

  • constructor of the class HelpPage

    Parameters

    • tab: string

      the tab that is opened

    • user_role: string

      the role when logged in: 'mdg', 'mus', 'com', 'syc'

    Returns HelpPage

Properties

config_function: any
config_indicators: Record<string, any>
config_iso_codes: Record<string, any>
csvStructures: any
dropdown_sort_by_adm: HTMLSelectElement
indicator_details: Record<string, any>
language_code: string
tab: string
user_country_code: string
user_role: string

Methods

  • Builds the ADM 0, ADM 1 and ADM 2 tables

    Parameters

    • adm_shortcut: string

      adm_0, adm_1, adm_2

    • sort_by: string

      'iso_code', 'name_en', 'name_fr' (when building ADM 0, sort by does not have an effect as it only has one value)

    • country_code: string

      'com', 'mdg', 'mus', 'syc'

    Returns void

  • builds the markup for the indicators documentation

    Returns void

  • disables or enables all user inputs

    Parameters

    • disable_true_false: boolean

      true = disable, false = enable

    Returns void

  • creates a csv for a apecific adm level the content is pulled from this.csvStructures, which for each adm level holds an array with: code, name_fr, name_en

    Parameters

    • event: any

      click event

    Returns void

  • resets the help tables containers

    Returns void

  • shows or hides a column in the indicators tables

    Parameters

    • event: any

      checkbox toggle event

    Returns void

  • shows or hides an indicator in the regional platform

    Parameters

    • event: any

      checkbox toggle event

    Returns void