TextTemplate class
テンプレート式がローカルの "インライン" で、登録済みの言語ジェネレーターを使用して処理されるテキスト テンプレートを定義します。
コンストラクター
Text |
TextTemplate クラスの新しいインスタンスを初期化します。 |
プロパティ
$kind | |
template | テキストを作成するために評価するテンプレートを取得または設定します。 |
to |
メソッド
bind(Dialog |
データをテンプレートにバインドします。 |
configure(Text |
|
get |
コンストラクターの詳細
TextTemplate(string)
TextTemplate クラスの新しいインスタンスを初期化します。
new TextTemplate(template?: string)
パラメーター
- template
-
string
テキストを作成するために評価するテンプレート。
プロパティの詳細
$kind
static $kind: string
プロパティ値
string
template
テキストを作成するために評価するテンプレートを取得または設定します。
template: string
プロパティ値
string
toString
toString: () => string
プロパティ値
() => string
メソッドの詳細
bind(DialogContext, D)
データをテンプレートにバインドします。
function bind(dialogContext: DialogContext, data: D): Promise<string>
パラメーター
- dialogContext
-
DialogContext
DialogContext。
- data
-
D
バインドするデータ。
戻り値
Promise<string>
非同期操作を表す Promise。
configure(TextTemplateConfiguration)
function configure(config: TextTemplateConfiguration): this
パラメーター
- config
- TextTemplateConfiguration
構成。
戻り値
this
指定された構成を持つオブジェクト。
getConverter(Object)
function getConverter(_property: Object): Converter | ConverterFactory
パラメーター
- _property
-
Object
条件付きセレクター構成のキー。
戻り値
Converter | ConverterFactory
セレクター構成のコンバーター。