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

SaveConsole
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

.new

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

Instance Methods

.object

.path

.onSaveAs

.print

.printPath

.save

Arguments:

title
minWidth

.saveAs

Arguments:

onSaveF
default

.open

Arguments:

onOpenF

.getPathThen

Arguments:

then
... args

.doSave

.doSaveAs