SaveConsole:
Filter:
Classes (extension) | Libraries > crucial > GUI

SaveConsole : AbstractConsole : Object
ExtensionExtension

widget with Save/SaveAs/Open controls

Description

This is used in Player guis to add the Save/SaveAs controls

Does a no-clobber check, makes a .bak copy of any previously existing file it finds.

Class Methods

SaveConsole.new(object, path, layout)

Arguments:

object

anything that can respond to .asCompileString and thus be saved to disk

path

supply this if the object you are supplying was already loaded from disk and has a known path. This is used for the save/save as behavior.

layout

Inherited class methods

Instance Methods

.object

.object = value

.path

.path = value

.onSaveAs

.onSaveAs = value

.print

.printPath

.save(title: "save", minWidth: 100)

Arguments:

title
minWidth

.saveAs(onSaveF, default)

Arguments:

onSaveF
default

.open(onOpenF)

Arguments:

onOpenF

.getPathThen(then ... args)

Arguments:

then
... args

.doSave

.doSaveAs

Inherited instance methods