class

Bubbles::Filepicker::Model

Inherits Reference < Object

Model represents a file picker.

Constructors

Instance methods

allowed_types
Source
allowed_types=(allowed_types : Array(String))
Source
auto_height?
Source
current_directory
Source
current_directory=(current_directory : String)
Source
cursor
Source
cursor=(cursor : String)
Source
did_select_disabled_file(msg : Tea::Msg) : Tuple(Bool, String)

DidSelectDisabledFile returns whether a user tried to select a disabled file (on this msg). This is necessary only if you would like to warn the user that they tried to select a disabled file.

Source
did_select_file(msg : Tea::Msg) : Tuple(Bool, String)

DidSelectFile returns whether a user has selected a file (on this msg).

Source
dir_allowed=(dir_allowed : Bool)
Source
dir_allowed?
Source
file_allowed=(file_allowed : Bool)
Source
file_allowed?
Source
height

Height returns the height of the file picker.

Source
height=(h : Int32)

SetHeight sets the height of the file picker.

Source
highlighted_path

HighlightedPath returns the path of the currently highlighted file or directory.

Source
init

Init initializes the file picker model.

Source
key_map
Source
key_map=(key_map : KeyMap)
Source
path
Source
path=(path : String)
Source
show_hidden=(show_hidden : Bool)
Source
show_hidden?
Source
show_permissions=(show_permissions : Bool)
Source
show_permissions?
Source
show_size=(show_size : Bool)
Source
show_size?
Source
styles
Source
styles=(styles : Styles)
Source
update(msg : Tea::Msg) : Tuple(Model, Tea::Cmd)

Update handles user interactions within the file picker model.

Source
view

View returns the view of the file picker.

Source