AddContentControlList

function AddContentControlList(
  type: ContentControlType,
  List: (String,
  String)[] = [{Display, Value}],
  commonPr: ContentControlProperties = {},
): void

Description

Adds an empty content control list to the document.

Parameters

A numeric value that specifies the content control type. It can have one of the following values: 1 (combo box), 0 (dropdown list).

List(String, String)[]default: [{Display, Value}]

A list of the content control elements that consists of two items: Display - an item that will be displayed to the user in the content control list, Value - a value of each item from the content control list.

commonPrContentControlPropertiesdefault: {}

The common content control properties.

Returns

void

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).