Static CMS
Star StaticJsCMS/static-cms on GitHub
v4.3.0DocsExamplesDemoCommunity

Key Value

  • Name: keyvalue
  • UI: Pairs of text inputs
  • Data type: object of key/value pairs

The key value widget allows editors to enter an arbitrary number of key/value pairs.

Widget Options

For common options, see Common widget options.

NameTypeDefaultDescription
defaultstring{ '': '' }Optional. The default value for the field. Accepts an object of key/value pairs
key_labelstring'Key'Optional. The label for the Key column of inputs
value_labelstring'Value'Optional. The label for the Value column of inputs
minnumberOptional. Minimum number of key/value pairs
maxnumberOptional. Maximum number of key/value pairs

Example

name: environment_variables
label: Environment Variables
widget: keyvalue