Skip to content

Commit

Permalink
Merge pull request #246 from atc0005/i243-toggle-visibility-support
Browse files Browse the repository at this point in the history
Initial support for toggling visibility
  • Loading branch information
atc0005 committed Dec 7, 2023
2 parents 39566f2 + 1437e34 commit a09de7c
Show file tree
Hide file tree
Showing 6 changed files with 1,068 additions and 25 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ A package to send messages to a Microsoft Teams channel.
- [Tables](#tables)
- [Set custom user agent](#set-custom-user-agent)
- [Add an Action](#add-an-action)
- [Toggle visibility](#toggle-visibility)
- [Disable webhook URL prefix validation](#disable-webhook-url-prefix-validation)
- [Enable custom patterns' validation](#enable-custom-patterns-validation)
- [Used by](#used-by)
Expand Down Expand Up @@ -242,6 +243,17 @@ this action triggers opening a URL in a separate browser or application.
- `MessageCard`
- File: [actions](./examples/messagecard/actions/main.go)

#### Toggle visibility

These examples illustrates using
[`ToggleVisibility`][adaptivecard-ref-actions] Actions to control the
visibility of various Elements of an `Adaptive Card` message.

- File: [toggle-visibility-single-button](./examples/adaptivecard/toggle-visibility-single-button/main.go)
- File: [toggle-visibility-multiple-buttons](./examples/adaptivecard/toggle-visibility-multiple-buttons/main.go)
- File: [toggle-visibility-column-action](./examples/adaptivecard/toggle-visibility-column-action/main.go)
- File: [toggle-visibility-container-action](./examples/adaptivecard/toggle-visibility-container-action/main.go)

#### Disable webhook URL prefix validation

This example disables the validation webhook URLs, including the validation of
Expand Down
Loading

0 comments on commit a09de7c

Please sign in to comment.