ActivityTemplate class

Defines an activity template where the template expression is local aka "inline" and processed through registered language generator.

Constructors

ActivityTemplate(string)

Initialize a new instance of ActivityTemplate class.

Properties

$kind
template

Gets or sets the template to evaluate to create the activity.

toString

Methods

bind(DialogContext, DialogStateManager)

Bind data to template.

configure(ActivityTemplateConguration)
getConverter(Object)

Constructor Details

ActivityTemplate(string)

Initialize a new instance of ActivityTemplate class.

new ActivityTemplate(template?: string)

Parameters

template

string

The template to evaluate to create the activity.

Property Details

$kind

static $kind: string

Property Value

string

template

Gets or sets the template to evaluate to create the activity.

template: string

Property Value

string

toString

toString: () => string

Property Value

() => string

Method Details

bind(DialogContext, DialogStateManager)

Bind data to template.

function bind(dialogContext: DialogContext, data: DialogStateManager): Promise<Partial<Activity>>

Parameters

dialogContext

DialogContext

DialogContext

data

DialogStateManager

Data to bind to.

Returns

Promise<Partial<Activity>>

A promise representing the asynchronous operation.

configure(ActivityTemplateConguration)

function configure(config: ActivityTemplateConguration): this

Parameters

config
ActivityTemplateConguration

The configuration.

Returns

this

A object with the given configuration.

getConverter(Object)

function getConverter(_property: Object): Converter | ConverterFactory

Parameters

_property

Object

The key of the conditional selector configuration.

Returns

Converter | ConverterFactory

The converter for the selector configuration.