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 = nil, style : Styles | ::Nil = nil, text : Text, url : String | ::Nil = nil, value : String | ::Nil = 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
Macros inherited from module Slack::InitializerMacros
generate_initializer
generate_initializer,
inherit_assigns
inherit_assigns,
properties_with_initializer(*type_declarations)
properties_with_initializer,
setup_initializer_hook
setup_initializer_hook
Macros inherited from module Slack::UI::DynamicTextComposition
text_object(klass, **options)
text_object
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