Skip to main content

Project

Defined in: src/entities/project.ts:22

Represents a project

Extends

Constructors

Constructor

new Project(dart): Project

Defined in: src/entities/project.ts:23

Parameters

ParameterType
dartany

Returns

Project

Overrides

Entity.constructor

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
dartpublicany-Entity.dartsrc/entities/entity.ts:19
metapublicobjectProject metadata (metaParams) — user-facing key:value bag, e.g. demoPath.-src/entities/project.ts:33
optionspublicany--src/entities/project.ts:30

Accessors

author

Get Signature

get author(): any

Defined in: src/entities/entity.ts:59

Who created entity *

Returns

any

Inherited from

Entity.author


children

Get Signature

get children(): Entity[]

Defined in: src/entities/project.ts:123

Returns

Entity[]


createdOn

Get Signature

get createdOn(): Dayjs

Defined in: src/entities/entity.ts:50

Time when entity was created *

Returns

Dayjs

Inherited from

Entity.createdOn


description

Get Signature

get description(): string

Defined in: src/entities/project.ts:77

Project description

Returns

string


entityType

Get Signature

get entityType(): string

Defined in: src/entities/entity.ts:66

Entity type name *

Returns

string

Inherited from

Entity.entityType


friendlyName

Get Signature

get friendlyName(): string

Defined in: src/entities/entity.ts:36

Entity friendly name

Returns

string

Set Signature

set friendlyName(x): void

Defined in: src/entities/entity.ts:37

Parameters
ParameterType
xstring
Returns

void

Inherited from

Entity.friendlyName


id

Get Signature

get id(): string

Defined in: src/entities/entity.ts:28

Entity ID (GUID)

Returns

string

Set Signature

set id(x): void

Defined in: src/entities/entity.ts:29

Parameters
ParameterType
xstring
Returns

void

Inherited from

Entity.id


isDashboard

Get Signature

get isDashboard(): boolean

Defined in: src/entities/project.ts:91

Returns

boolean


isDirty

Get Signature

get isDirty(): boolean

Defined in: src/entities/project.ts:82

Project changes flag

Returns

boolean


isEmpty

Get Signature

get isEmpty(): boolean

Defined in: src/entities/project.ts:87

Project is empty flag

Returns

boolean


isLocal

Get Signature

get isLocal(): string

Defined in: src/entities/project.ts:72

Returns

string


isOnServer

Get Signature

get isOnServer(): string

Defined in: src/entities/project.ts:68

Returns

string


isPackage

Get Signature

get isPackage(): boolean

Defined in: src/entities/project.ts:95

Returns

boolean


isSpace

Get Signature

get isSpace(): boolean

Defined in: src/entities/project.ts:100

True for Spaces — hierarchical containers with their own storage. See grok.dapi.spaces.

Returns

boolean


Get Signature

get links(): Entity[]

Defined in: src/entities/project.ts:119

Returns

Entity[]


name

Get Signature

get name(): string

Defined in: src/entities/entity.ts:40

Entity short name

Returns

string

Set Signature

set name(x): void

Defined in: src/entities/entity.ts:41

Parameters
ParameterType
xstring
Returns

void

Inherited from

Entity.name


nqName

Get Signature

get nqName(): string

Defined in: src/entities/entity.ts:44

Entity full-qualified name

Returns

string

Inherited from

Entity.nqName


path

Get Signature

get path(): string

Defined in: src/entities/project.ts:64

Entity path

Returns

string

Overrides

Entity.path


pictureUrl

Get Signature

get pictureUrl(): string

Defined in: src/entities/project.ts:60

Returns

string


updatedOn

Get Signature

get updatedOn(): Dayjs | null

Defined in: src/entities/entity.ts:53

Time when entity was updated *

Returns

Dayjs | null

Inherited from

Entity.updatedOn

Methods

addChild()

addChild(entity): void

Defined in: src/entities/project.ts:133

Parameters

ParameterType
entityEntity | DataFrame

Returns

void


addLink(entity): void

Defined in: src/entities/project.ts:127

Parameters

ParameterType
entityEntity | DataFrame

Returns

void


addTableView()

addTableView(table): TableView

Defined in: src/entities/project.ts:148

Adds a table to this project and opens it as a view

Parameters

ParameterType
tableDataFrame

Returns

TableView


close()

close(): void

Defined in: src/entities/project.ts:115

Closes the project: removes its tables and views from the workspace.

Returns

void


getProperties()

getProperties(): Promise<{[index: string]: any; }>

Defined in: src/entities/entity.ts:69

Gets entity properties

Returns

Promise<{[index: string]: any; }>

Inherited from

Entity.getProperties


hasTag()

hasTag(tag): boolean

Defined in: src/entities/entity.ts:81

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity.hasTag


newId()

newId(): void

Defined in: src/entities/entity.ts:32

Generates new id for this entity.

Returns

void

Inherited from

Entity.newId


open()

open(options?): Promise<Project>

Defined in: src/entities/project.ts:109

Opens the project in workspace

Parameters

ParameterType
options?ProjectOpenOptions

Returns

Promise<Project>


removeChild()

removeChild(entity): void

Defined in: src/entities/project.ts:143

Parameters

ParameterType
entityEntity

Returns

void


removeLink(entity): void

Defined in: src/entities/project.ts:139

Parameters

ParameterType
entityEntity

Returns

void


setProperties()

setProperties(props): Promise<any>

Defined in: src/entities/entity.ts:74

Sets entity properties

Parameters

ParameterType
props{[index: string]: any; }

Returns

Promise<any>

Inherited from

Entity.setProperties


tag()

tag(tag): boolean

Defined in: src/entities/entity.ts:84

Adds a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity.tag


toMarkup()

toMarkup(): string

Defined in: src/entities/project.ts:104

Returns

string


toString()

toString(): string

Defined in: src/entities/entity.ts:79

Returns a string representing the object

Returns

string

Inherited from

Entity.toString


unTag()

unTag(tag): boolean

Defined in: src/entities/entity.ts:87

Removes a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity.unTag


create()

static create(): Project

Defined in: src/entities/project.ts:35

Returns

Project


showSaveDialog()

static showSaveDialog(options): Promise<Project | null>

Defined in: src/entities/project.ts:49

Opens the platform "Save project" dialog for an externally assembled set of tables — the standard dashboard-publishing UI (per-table data-sync toggles, creation-script dependencies, share link, upload) without scanning the workspace: only the passed tables are offered. views[i], when given, is the (possibly detached) TableView showing tables[i]; its layout is saved with the project and reopens with the table. When views[i] is absent, layouts[i] (a ViewLayout.viewState string) ships the layout without a live view. Data sync defaults on for tables whose df carries a creation script (.script tag). Pass project (a previously saved project or its id) to re-publish into the SAME project — its table/view children are replaced by the fresh ones instead of creating a new project per save.

Parameters

ParameterType
options{ description?: string; layouts?: (string | null)[]; name?: string; project?: string | Project; tables: DataFrame[]; views?: (TableView | null)[]; }
options.description?string
options.layouts?(string | null)[]
options.name?string
options.project?string | Project
options.tablesDataFrame[]
options.views?(TableView | null)[]

Returns

Promise<Project | null>

the saved project, or null when the dialog is cancelled.