Microsoft.Common.PasswordBox UI 要素

パスワードの提供と確認に使用できるコントロールです。

UI サンプル

Microsoft.Common.PasswordBox UI 要素のスクリーンショット。

スキーマ

{
  "name": "element1",
  "type": "Microsoft.Common.PasswordBox",
  "label": {
    "password": "Password",
    "confirmPassword": "Confirm password"
  },
  "toolTip": "",
  "constraints": {
    "required": true,
    "regex": "^[a-zA-Z0-9]{8,}$",
    "validationMessage": "Password must be at least 8 characters long, contain only numbers and letters"
  },
  "options": {
    "hideConfirmation": false
  },
  "visible": true
}

サンプル出力

"p4ssw0rd"

解説

  • この要素は defaultValue プロパティをサポートしていません。
  • constraints の実装の詳細については、Microsoft.Common.TextBox に関する記事を参照してください。
  • options.hideConfirmationtrue に設定されている場合、ユーザーのパスワードを確認するための 2 つ目のテキスト ボックスは表示されません。 既定値は false です。

次のステップ