渡された属性型に基づいてフォーマッタ ユーザー入力を返します。 型が認識されない場合は、入力自体を返します。
構文
context.formatting.formatUserInput(input, controlAttributes);
使用可能な対象
モデル駆動型アプリとキャンバス アプリ
パラメーター
| パラメーター名 | タイプ | 必須 | Description |
|---|---|---|---|
| 入力 | unknown |
イエス | ユーザー入力。 |
| ビヘイビアー | ControlAttributes |
イエス |
controlAttributes フォーマッタによって使用されます。 |
戻り値
タイプ: string
Example
const controlAttributes = {
Type: "double",
Precision: 2,
PrecisionSource: 0,
Behavior: null,
OptionSet: null,
Format: null,
} as ControlAttributes;
context.formatter.formatUserInput("22", controlAttributes);
関連資料
書式設定
Power Apps コンポーネント フレームワーク API リファレンス
Power Apps コンポーネント フレームワークの概要