diff options
author | Wim <wim@42.be> | 2021-07-31 18:27:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-31 18:27:55 +0200 |
commit | 44f3e2557dad86129419ed098c29e67638519f4f (patch) | |
tree | 17b8ddba49057cd8bf39cdf2618b31c7f6bc8c6a /vendor/github.com/slack-go/slack/dialog_select.go | |
parent | 1f365c716eae44b64dc5bdace5cb70441d7eb4c2 (diff) | |
download | matterbridge-msglm-44f3e2557dad86129419ed098c29e67638519f4f.tar.gz matterbridge-msglm-44f3e2557dad86129419ed098c29e67638519f4f.tar.bz2 matterbridge-msglm-44f3e2557dad86129419ed098c29e67638519f4f.zip |
Update vendor (#1560)
Diffstat (limited to 'vendor/github.com/slack-go/slack/dialog_select.go')
-rw-r--r-- | vendor/github.com/slack-go/slack/dialog_select.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/slack-go/slack/dialog_select.go b/vendor/github.com/slack-go/slack/dialog_select.go index 385cef68..3d6be989 100644 --- a/vendor/github.com/slack-go/slack/dialog_select.go +++ b/vendor/github.com/slack-go/slack/dialog_select.go @@ -54,6 +54,20 @@ func NewStaticSelectDialogInput(name, label string, options []DialogSelectOption } } +// NewExternalSelectDialogInput constructor for a `external` datasource menu input +func NewExternalSelectDialogInput(name, label string, options []DialogSelectOption) *DialogInputSelect { + return &DialogInputSelect{ + DialogInput: DialogInput{ + Type: InputTypeSelect, + Name: name, + Label: label, + Optional: true, + }, + DataSource: DialogDataSourceExternal, + Options: options, + } +} + // NewGroupedSelectDialogInput creates grouped options select input for Dialogs. func NewGroupedSelectDialogInput(name, label string, options []DialogOptionGroup) *DialogInputSelect { return &DialogInputSelect{ |