struct UI::Alert::AlertButton

Overview

Alert button definition

Defined in:

ui/views/alert.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String, style : Symbol = :default, action : Proc(Nil) | Nil = nil) #

[View source]

Instance Method Detail

def action : Proc(Nil) | Nil #

def clone #

[View source]
def copy_with(label _label = @label, style _style = @style, action _action = @action) #

[View source]
def label : String #

def style : Symbol #