struct UI::ContextMenuWithWebFallback::Item

Defined in:

ui/views/context_menu_with_web_fallback.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def icon : String | Nil #

def is_destructive : Bool #

def is_disabled : Bool #

def label : String #