struct Slack::UI::BlockElements::Button
- Slack::UI::BlockElements::Button
- Slack::UI::BlockElement
- Struct
- Value
- Object
Overview
https://api.slack.com/reference/block-kit/block-elements#button__fields
Defined in:
slack/ui/block_elements/button.crConstant Summary
-
ASSIGNED_TYPES =
[action_id : String, confirm : Slack::UI::CompositionObjects::Confirmation | ::Nil, style : Styles | ::Nil, text : Text, url : String | ::Nil, value : String | ::Nil] of TypeDeclaration
-
https://api.slack.com/reference/block-kit/block-elements#button__fields
Constructors
-
.new(action_id : String, text : Text, confirm : Slack::UI::CompositionObjects::Confirmation | Nil = nil, style : Styles | Nil = nil, url : String | Nil = nil, value : String | Nil = nil)
https://api.slack.com/reference/block-kit/block-elements#button__fields
-
.new(pull : JSON::PullParser)
https://api.slack.com/reference/block-kit/block-elements#button__fields
Instance Method Summary
- #action_id : String
- #action_id=(action_id : String)
- #confirm : Slack::UI::CompositionObjects::Confirmation | Nil
- #confirm=(confirm : Slack::UI::CompositionObjects::Confirmation | Nil)
- #style : Styles | Nil
- #style=(style : Styles | Nil)
- #text : Text
- #text=(text : Text)
- #to_json(json : JSON::Builder)
- #type : String
- #url : String | Nil
- #url=(url : String | Nil)
- #value : String | Nil
- #value=(value : String | Nil)
Instance methods inherited from struct Slack::UI::BlockElement
type
type
Constructor methods inherited from struct Slack::UI::BlockElement
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(action_id : String, text : Text, confirm : Slack::UI::CompositionObjects::Confirmation | Nil = nil, style : Styles | Nil = nil, url : String | Nil = nil, value : String | Nil = nil)
#
https://api.slack.com/reference/block-kit/block-elements#button__fields
def self.new(pull : JSON::PullParser)
#
https://api.slack.com/reference/block-kit/block-elements#button__fields