class Opal::UI::CommandAction

Overview

Represents an actionable command in a CommandPalette

Defined in:

opal/ui/components/command_palette.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, title : String, category : String = "General", shortcut : String | Nil = nil, callback : Proc(Nil) | Nil = nil) #

[View source]

Instance Method Detail

def callback : Proc(Nil) | Nil #

[View source]
def category : String #

[View source]
def full_search_key : String #

[View source]
def id : String #

[View source]
def shortcut : String | Nil #

[View source]
def title : String #

[View source]