Methods
# static isNameUnique(name) → {boolean}
Overview
Checks whether a provided name is unique among other project's names.Parameters:
Name | Type | Description |
---|---|---|
name |
string | Project's name. |
- If
true
the provided name is unique.
boolean
# static onDeleteDialogClose(action)
Overview
Callback fired whenDeleteProjectDialog
requests to be closed.
If user confirmed the deletion, method proceeds to delete current project.
Then updates App
's state and closes dialog.
Parameters:
Name | Type | Description |
---|---|---|
action |
boolean | If |
# static onFilesAccepted(name, files, csvSpecsopt)
Overview
Method forwarded to theImport
section.
Fired when user accepts their selection and requests to create project.
Method checks if project name is already used. Then, makes an API call on projects to create new project. Eventually, adds new project to
App
's state and changes section to "Project".
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string | The name of the new project. |
|
files |
Array.<Object> | The list of files that are used to build new project. |
|
csvSpecs |
Object |
<optional> |
If a file containing data was in CSV format, this object contains CSV settings. |
# static onObjectNamesChange()
Overview
Callback fired whenSettingsProjectDialog
changed global visible object name.
# static onRenameDialogClose(name)
Overview
Callback fired whenRenameProjectDialog
requests to be closed.
If user provided new name and when the new name is unique, method proceeds to update project's name.
Then updates App
's state and closes dialog.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The new name for current project. |
# static updateProject(project)
Overview
Method is forwarded to theProjectTabs
and further to all tabs except Data
.
Saves changes from provided project in the App
's state and updates index options.
Parameters:
Name | Type | Description |
---|---|---|
project |
Object | Project with unsaved changes. |