@sqlrooms/artifacts / UseArtifactTabsResult
Type Alias: UseArtifactTabsResult
UseArtifactTabsResult =
object
Properties
tabsId?
optionaltabsId?:string
tabs
tabs:
ArtifactTabDescriptor[]
openTabs
openTabs:
string[]
selectedTabId?
optionalselectedTabId?:string
artifactTypes
artifactTypes:
ArtifactTypeDefinitions<any>
createArtifact
createArtifact: (
type?,options?) =>string|undefined
Parameters
| Parameter | Type |
|---|---|
type? | string |
options? | { title?: string; } |
options.title? | string |
Returns
string | undefined
openArtifact
openArtifact: (
artifactId) =>void
Parameters
| Parameter | Type |
|---|---|
artifactId | string |
Returns
void
closeArtifact
closeArtifact: (
artifactId) =>void
Parameters
| Parameter | Type |
|---|---|
artifactId | string |
Returns
void
deleteArtifact
deleteArtifact: (
artifactId) =>void
Parameters
| Parameter | Type |
|---|---|
artifactId | string |
Returns
void
renameArtifact
renameArtifact: (
artifactId,title) =>void
Parameters
| Parameter | Type |
|---|---|
artifactId | string |
title | string |
Returns
void
reorderArtifacts
reorderArtifacts: (
openArtifactIds) =>void
Parameters
| Parameter | Type |
|---|---|
openArtifactIds | string[] |
Returns
void
selectArtifact
selectArtifact: (
artifactId) =>void
Parameters
| Parameter | Type |
|---|---|
artifactId | string |
Returns
void
handleOpenTabsChange
handleOpenTabsChange: (
openArtifactIds) =>void
Parameters
| Parameter | Type |
|---|---|
openArtifactIds | string[] |
Returns
void
