diskfiles_editor.svelte.ts view source
Editor state management for diskfiles.
inheritance
Cell<typeof DiskfilesEditorJson>
show_sort_controls
Controls visibility of sort controls in the file explorer.
type boolean
tabs
Tabs for managing the open diskfiles.
type DiskfileTabs
constructor
type new (options: DiskfilesEditorOptions): DiskfilesEditor
options
preview_diskfile
Opens a diskfile in preview mode.
type (diskfile_id: string & $brand<"Uuid">): void
diskfile_id
string & $brand<"Uuid">voidopen_diskfile
Opens a diskfile in permanent mode.
type (diskfile_id: string & $brand<"Uuid">): void
diskfile_id
string & $brand<"Uuid">voidreorder_tabs
Reorders tabs.
type (from_index: number, to_index: number): void
from_index
numberto_index
numbervoidselect_tab
Selects a tab by id.
type (tab_id: string & $brand<"Uuid">): void
tab_id
string & $brand<"Uuid">voidclose_tab
Closes a tab by id.
type (tab_id: string & $brand<"Uuid">): void
tab_id
string & $brand<"Uuid">voidreopen_last_closed_tab
Reopens the last closed tab.
type (): void
voidpromote_preview_tab
Promotes the current preview tab to permanent.
type (): void
voidopen_tab
Opens (makes permanent) a tab by id.
type (tab_id: string & $brand<"Uuid">): void
tab_id
string & $brand<"Uuid">voidhandle_file_modified
Handles when a diskfile's content is modified.
type (diskfile_id: string & $brand<"Uuid">): void
diskfile_id
string & $brand<"Uuid">voidsync_selected_file
Syncs the selected diskfile in diskfiles with the selected tab.
type (): void
voidtoggle_sort_controls
Toggles the visibility of sort controls in the file explorer.
type (value?: boolean): void
value
boolean!this.show_sort_controlsvoid