struct UI::MenuButton::MenuItem

Defined in:

ui/views/menu_button.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String = "", icon : String | Nil = nil, is_destructive : Bool = false, 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, icon _icon = @icon, is_destructive _is_destructive = @is_destructive, action _action = @action) #

[View source]
def icon : String | Nil #

def is_destructive : Bool #

def label : String #