flat-array

TBD

For more complex arrays with objects as values see the array policy type.

Example JSON output

{
  "policies": {
    "RequestedLocales": [
      "de",
      "en"
    ]
  }
}

Example screenshot

Example implementation

const policies = {
  RequestedLocales : {
    first_available : { mainstream : '64.0', esr : '60.3.1' },
    ui_category : 'customization',
    type : 'flat-array',
    value : {
      label : browser.i18n.getMessage('policy_description_RequestedLocales_Value'),
      mandatory : false,
      allow_empty_value : true
    }
  }
}

with allow_empty_value set to true and no value:

{
  "policies": {
    "RequestedLocales": ""
  }
}

Last updated