formatUserInput
渡された属性型に基づいてフォーマッターのユーザー入力を返します。 型が認識されない場合は、入力そのものを返します。
構文
context.formatting.formatUserInput(input, controlAttributes);
以下に使用できます
モデル駆動型アプリとキャンバス アプリ
パラメーター
| パラメーター名 | 型 | 必須 | 説明 |
|---|---|---|---|
| input | unknown |
はい | ユーザーによる入力。 |
| behavior | ControlAttributes |
はい | フォーマッタにより使用される controlAttributes。 |
戻り値
型: string
例
const controlAttributes = {
Type: "double",
Precision: 2,
PrecisionSource: 0,
Behavior: null,
OptionSet: null,
Format: null,
} as ControlAttributes;
context.formatter.formatUserInput("22", controlAttributes);
関連トピック
Formatting
Power Apps Component Framework API の参照
Power Apps Component Framework の概要
注意
ドキュメントの言語設定についてお聞かせください。 簡単な調査を行います。 (この調査は英語です)
この調査には約 7 分かかります。 個人データは収集されません (プライバシー ステートメント)。
フィードバック
フィードバックの送信と表示