Skip to main content

AddContentControlDatePicker

Adds an empty content control datepicker to the document.

Syntax​

expression.AddContentControlDatePicker(datePickerPr, commonPr);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
datePickerPrOptionalContentControlDatePickerProperties{}The content control datepicker properties.
commonPrOptionalContentControlProperties{}The common content control properties.

Returns​

This method doesn't return any data.

Example​

window.Asc.plugin.executeMethod ("AddContentControlDatePicker", [
{
"DateFormat" : "DD\ MMMM\ YYYY",
"Date" : new window.Date()
},
{
"Id" : 7,
"Tag" : "{tag}",
"Lock" : 0
}
]);