struct Slack::UI::BlockElements::Button

Overview

https://api.slack.com/reference/block-kit/block-elements#button__fields

Defined in:

slack/ui/block_elements/button.cr

Constant 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

Instance Method Summary

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


[View source]

Instance Method Detail

def action_id : String #

def action_id=(action_id : String) #


def confirm=(confirm : Slack::UI::CompositionObjects::Confirmation | Nil) #

def style : Styles | Nil #

def style=(style : Styles | Nil) #

def text : Text #

def text=(text : Text) #

def to_json(json : JSON::Builder) #

[View source]
def type : String #

[View source]
def url : String | Nil #

def url=(url : String | Nil) #

def value : String | Nil #

def value=(value : String | Nil) #