@sqlrooms/project-builder / ProjectStateActions
Type Alias: ProjectStateActions<PC>
ProjectStateActions<
PC
>:object
Type Parameters
Type Parameter |
---|
PC extends BaseProjectConfig |
Type declaration
Name | Type | Description |
---|---|---|
initialize | () => Promise <void > | Initialize the project state. |
setTaskProgress | (id , taskProgress ) => void | - |
getLoadingProgress | () => TaskProgress | undefined | - |
setProjectConfig | (config ) => void | Set the project config. |
setProjectId | (projectId ) => void | - |
setLastSavedConfig | (config ) => void | Set the last saved project config. This can be used to check if the project has unsaved changes. |
hasUnsavedChanges() | - | |
setLayout() | - | |
togglePanel | (panel , show ?) => void | Toggle a panel. |
togglePanelPin | (panel ) => void | Toggle the pin state of a panel. |
addOrUpdateSqlQueryDataSource() | - | |
removeSqlQueryDataSource() | - | |
replaceProjectFile() | - | |
addProjectFile() | - | |
removeProjectFile() | - | |
maybeDownloadDataSources() | - | |
setProjectFiles() | - | |
setProjectFileProgress() | - | |
addTable() | - | |
addDataSource | (dataSource , status ?) => Promise <void > | - |
getTable() | - | |
setTables() | - | |
setTableRowCount() | - | |
setProjectTitle() | - | |
setDescription() | - | |
areDatasetsReady() | - | |
findTableByName() | - | |
updateReadyDataSources() | - | |
onDataUpdated | () => Promise <void > | - |
areViewsReadyToRender() | - | |
refreshTableSchemas() | - |