Skip to content

M1-LINK Configuration


The configuration attribute of the LINK Widget is a JSON Object as described below
widget_config.json
{
  "access_key": "<<YOUR PUBLIC TOKEN>>",
  "host_name": "<<api.measureone.com>> OR <<api-stg.measureone.com>>",
  "datarequest_id": "<<DATA REQUEST ID>>",
  "branding": {
    "styles": {
      "primary_dark": "#094670",
      "primary_light": "#FFFFFF",
      "font_family_url": "string",
      "font_family": "string",
      "light_text": "string",
      "dark_text": "string",
      "light_background": "string",
      "dark_background": "string",
      "focus_light": "string",
      "focus_dark": "string",
      "isDark": false
    }
  },
  "options": {
    "display_profile": true,   
    "allow_close_widget": true,  
    "show_assist_mode": true   
  }
}

Properties

Required Fields:
Following are the required fields in widget configuration.

PropertyTypeDescription
access_keystringYour API Key
host_namestringHost Name for the environment.
datarequest_idstringUnique Identifier for the data request.

Styles

PropertyTypeDescriptionDefault Value
primary_darkstringPrimary dark color.#186793
primary_lightstringPrimary light color.#2e9ccb
font_family_urlstringURL for font-family.https://fonts.googleapis.com/css2?family=Open+Sans&family=Quicksand:wght@300&display=swap
font_familystringFont family to be used."Quicksand", sans-serif
light_textstringLight mode text color.#ffffff
dark_textstringDark mode text color.#000000
light_backgroundstringLight mode background color.#f5f5f5
dark_backgroundstringDark mode background color.#333333
focus_lightstringLight mode focus color.#2e9ccb
focus_darkstringDark mode focus color.#186793
isDarkbooleanDetermines if dark mode is enabled.false

Options

Settings to customize the behavior and appearance of the MeasureOne Link module.

PropertyTypeDescriptionDefault Value
display_profilebooleanWhether to display the profile screen on initialization.true
allow_close_widgetbooleanWhether to display the close button in the widget.true
show_assist_modebooleanWhether to show assist mode.true