Description Usage Format Details Methods Properties Examples
action_card
creates a potentialAction
object which can be added to connector_card
.
1 | # ac <- action_card$new(type = "ActionCard", name = "Add comment")
|
An R6Class
generator object
Assemble action_card
objects into a action_card
structure and use the methods to append, modify or send your card to the webhook specified.
action_card$new(type, name)
Creates a new action_card
.
add_text_inputs(id, title, is_multiline)
Add TextInput
to your action_card
.
add_date_inputs(id, title)
Add DateInput
to your action_card
.
add_mchoice_inputs(id, title, is_multi_select)
Add MultichoiceInput
to your action_card
.
dump()
Dump current payload
payload
R list of payloads(will be parsed into json)POST
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
library(teamr)
cc <- connector_card$new(hookurl = "https://outlook.office.com/webhook/...")
cc$text("Of on affixed civilly moments promise explain")
pa <- action_card$new(type = "ActionCard", name = "Add comment")
pa$add_actions()
pa$add_text_inputs(id = "comment", title = "Add comment for this task", is_multi_line = TRUE)
cc$add_potential_action(pa)
cc$send()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.