ContentDialog.primaryCommandDisabled property

Gets or sets whether the dialog's primary command button is disabled.

Syntax

<div 
  data-win-control="WinJS.UI.ContentDialog" 
  data-win-options="{ primaryCommandDisabled : value}">
</div>
var primaryCommandDisabled = contentDialog.primaryCommandDisabled;
contentDialog.primaryCommandDisabled = primaryCommandDisabled;

Property value

Type: Boolean

true if the primary command button is disabled; otherwise, false. The default value is false.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

ContentDialog