lib/slack/block_kit/layout/input.rb in slack-ruby-block-kit-0.14.1 vs lib/slack/block_kit/layout/input.rb in slack-ruby-block-kit-0.15.0
- old
+ new
@@ -17,17 +17,19 @@
label:,
element: nil,
block_id: nil,
hint: nil,
optional: nil,
- emoji: nil
+ emoji: nil,
+ dispatch_action: nil
)
@label = Composition::PlainText.new(text: label, emoji: emoji) if label
@hint = Composition::PlainText.new(text: hint, emoji: emoji) if hint
@block_id = block_id
@optional = optional
@element = element
+ @dispatch_action = dispatch_action
end
def conversation_select(placeholder:, action_id:, initial: nil, emoji: nil)
@element = Element::ConversationsSelect.new(
placeholder: placeholder,
@@ -226,10 +228,11 @@
type: TYPE,
element: @element.as_json,
label: @label&.as_json,
hint: @hint&.as_json,
block_id: @block_id,
- optional: optional
+ optional: optional,
+ dispatch_action: @dispatch_action
}.compact
end
end
end
end