Obučavanje
Modul
Build tabs for Microsoft Teams - Training
Learn how to build tabs that provide embedded web experiences within Microsoft Teams.
Ovaj preglednik više nije podržan.
Nadogradite na Microsoft Edge da iskoristite najnovije osobine, sigurnosna ažuriranja i tehničku podršku.
Dialogs (referred as task modules in TeamsJS v1.x) permit you to create modal pop-up experiences in your Teams application. In the pop-up, you can:
<iframe>
-based widget such as surveys, YouTube video, or Microsoft Stream video.Dialogs are useful for initiating and completing tasks or displaying rich information, such as videos or Power Business Intelligence (BI) dashboards. A pop-up experience is often more natural for users initiating and completing tasks compared to a tab or a conversation-based bot experience.
Dialogs build on the foundation of Microsoft Teams tabs. They're essentially a tab inside a pop-up window. They use the same Microsoft Teams JavaScript client library (TeamsJS), so if you have built a tab, you're already familiar with creating a dialog.
You can invoke dialogs in three ways:
Here's what a dialog looks like when invoked from a bot:
A dialog includes the following as shown in the previous image:
Your app's color
icon.
Your app's short
name.
The dialog's title specified in the title
property of the DialogInfo object.
The dialog's close or cancel button. If the user selects this button, your app receives an err
event. For more information, see example for submitting the result of a dialog.
Bilješka
It isn't possible to detect the err
event when a dialog is invoked from a bot.
The blue rectangle is where your web page appears if you're loading your own web page using the url
property of the TaskInfo object. For more information, see Invoke and dismiss dialogs.
If you're displaying an Adaptive Card using the card
property of the TaskInfo object, the padding is added for you. For more information, see CSS for HTML or JavaScript dialogs.
Adaptive Card buttons render after you select Sign up. When using your own page, create your own buttons. By design, the primary button style (solid) is applied to the last root action in an Adaptive Card. For all other actions, the default button style is applied.
You can integrate dialogs into Microsoft Bot Framework Web Chat to improve user experience. However, with the primary focus on chat interactions, Web Chat doesn't support opening dialogs. To create custom events or components within Web Chat, use Bot Framework Web Chat. For more information, see Bot Framework documentation.
Platform Docs povratne informacije
Platform Docs je projekat otvorenog koda. Odaberite vezu za pružanje povratnih informacija:
Obučavanje
Modul
Build tabs for Microsoft Teams - Training
Learn how to build tabs that provide embedded web experiences within Microsoft Teams.
Dokumentacija
Use dialogs in Microsoft Teams bots - Teams
Learn how to use dialogs with Microsoft Teams bots and invoke dialogs, about Bot Framework card and Adaptive Card actions, deep links, and respond to messages.
Use dialogs in Microsoft Teams tabs - Teams
Learn how to invoke dialogs (task modules) from Teams tabs and submitting its result using the Teams JavaScript client library (TeamsJS). It includes code samples.
Invoke Dialogs from Tab, Bot, or Link - Teams
Learn about invoking and dismissing dialogs (task modules), the dialog info object, dialog sizing, and dialog deep link syntax using code samples.