class ImGui::FileExplorer

Defined in:

crab/common/frontend/widgets/file_explorer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config) #

[View source]

Instance Method Detail

def close : Nil #

[View source]
def open? : Bool #

[View source]
def render(name : String, open_popup : Bool, extensions : Array(String) | Nil = nil, &handler : Path -> _) : Nil #

Render a file selection dialog with title [name]. Files are filtered by [estensions]. [handler] is executed and the dialog is closed when a file is selected.


[View source]