struct Slack::UI::BlockElements::PlainTextInput

Defined in:

slack/ui/block_elements/plain_text_input.cr

Constant Summary

ASSIGNED_TYPES = [action_id : String, dispatch_action_config : ActionConfig | ::Nil, focus_on_load : Bool = false, initial_value : String | ::Nil, max_length : Int16 | ::Nil, min_length : Int8 | ::Nil, multiline : Bool = false, placeholder : Placeholder = Placeholder.new("Placeholder text")] of TypeDeclaration

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(pull : JSON::PullParser) #

[View source]
def self.new(action_id : String, dispatch_action_config : ActionConfig | Nil = nil, focus_on_load : Bool = false, initial_value : String | Nil = nil, max_length : Int16 | Nil = nil, min_length : Int8 | Nil = nil, multiline : Bool = false, placeholder : Placeholder = Placeholder.new("Placeholder text")) #

Instance Method Detail

def action_id : String #

def action_id=(action_id : String) #

def after_initialize #

[View source]
def dispatch_action_config : ActionConfig | Nil #

def dispatch_action_config=(dispatch_action_config : ActionConfig | Nil) #

def focus_on_load : Bool #

def focus_on_load=(focus_on_load : Bool) #

def initial_value : String | Nil #

def initial_value=(initial_value : String | Nil) #

def max_length : Int16 | Nil #

def max_length=(max_length : Int16 | Nil) #

def min_length : Int8 | Nil #

def min_length=(min_length : Int8 | Nil) #

def multiline : Bool #

def multiline=(multiline : Bool) #

def placeholder : Placeholder #

def placeholder=(placeholder : Placeholder) #

def to_json(json : JSON::Builder) #

[View source]
def type : String #

[View source]