Toast Engine
Loading...
Searching...
No Matches
editor.Editors.SchemaViewModel Class Reference
Inheritance diagram for editor.Editors.SchemaViewModel:
Collaboration diagram for editor.Editors.SchemaViewModel:

Public Member Functions

Task WriteAutosaveAsync (string virtualPath)
bool IsStructType (string key)
void NotifyTypesChanged ()
void NotifyRootFieldOptionsChanged ()
void OpenFile (string uid, string virtualPath, string? contentSourceRealPath=null)
void RemoveStructType (StructTypeVM st)
async Task< bool > ConfirmCloseCurrentAsync ()

Properties

bool ShowTypes [get]
ObservableCollection< SchemaFieldItemVM > Fields = [] [get]
ObservableCollection< StructTypeVM > StructTypes = [] [get]
IEnumerable< string > AllTypes [get]
IEnumerable< string > RootEnumFieldNames [get]
IEnumerable< string > RootDiscriminatorOptions [get]
bool HasContent [get]
bool IsAutosaveDirty [get]
string? AutosaveFileName [get]

Events

Action< string >? SchemaSaved

Member Function Documentation

◆ WriteAutosaveAsync()

Task editor.Editors.SchemaViewModel.WriteAutosaveAsync ( string virtualPath)
inline

Property Documentation

◆ AutosaveFileName

string? editor.Editors.SchemaViewModel.AutosaveFileName
get

◆ IsAutosaveDirty

bool editor.Editors.SchemaViewModel.IsAutosaveDirty
get

The documentation for this class was generated from the following file:
  • editor/Editors/SchemaViewModel.cs