StaticActivityTemplate class
Defines a static activity as a template.
Constructors
Static |
Intialize a new instance of StaticActivityTemplate class. |
Properties
$kind | |
activity | Gets or sets the activity as template. |
to |
Methods
bind(Dialog |
Get predefined activity. |
configure(Static |
|
get |
Constructor Details
StaticActivityTemplate(Partial<Activity>)
Intialize a new instance of StaticActivityTemplate class.
new StaticActivityTemplate(activity?: Partial<Activity>)
Parameters
- activity
-
Partial<Activity>
Activity as a template.
Property Details
$kind
static $kind: string
Property Value
string
activity
Gets or sets the activity as template.
activity: Partial<Activity>
Property Value
Partial<Activity>
toString
toString: () => string
Property Value
() => string
Method Details
bind(DialogContext, unknown)
Get predefined activity.
function bind(dialogContext: DialogContext, data: unknown): Promise<Partial<Activity>>
Parameters
- dialogContext
-
DialogContext
DialogContext.
- data
-
unknown
Data to bind to (not working with static activity template).
Returns
Promise<Partial<Activity>>
configure(StaticActivityTemplateConfiguration)
function configure(config: StaticActivityTemplateConfiguration): this
Parameters
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.