Skip to main content

ViewInfo

Base class for system objects stored in the database in a structured manner. Contains base properties: id, name and path

Extends

Constructors

new ViewInfo()

new ViewInfo(dart): ViewInfo

Parameters

ParameterType
dartany

Returns

ViewInfo

Overrides

Entity . constructor

Constructs

ViewInfo

Source

src/entities.ts:1922

Properties

PropertyModifierTypeInherited from
dartpublicanyEntity.dart

Accessors

author

get author(): User

Who created entity *

Returns

User

Source

src/entities.ts:125


createdOn

get createdOn(): Dayjs

Time when entity was created *

Returns

Dayjs

Source

src/entities.ts:116


friendlyName

get friendlyName(): string

Entity friendly name

set friendlyName(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:102


id

get id(): string

Entity ID (GUID)

set id(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:94


name

get name(): string

Entity short name

set name(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:106


nqName

get nqName(): string

Entity full-qualified name

Returns

string

Source

src/entities.ts:110


path

get path(): string

Entity path

Returns

string

Source

src/entities.ts:113


table

get table(): TableInfo

Returns

TableInfo

Source

src/entities.ts:1934


updatedOn

get updatedOn(): null | Dayjs

Time when entity was updated *

Returns

null | Dayjs

Source

src/entities.ts:119


view

get view(): View

Only defined within the context of the OnViewLayoutXXX events

Returns

View

Source

src/entities.ts:1939


viewState

get viewState(): string

set viewState(state): void

Parameters

ParameterType
statestring

Returns

string

Source

src/entities.ts:1943

Methods

getProperties()

getProperties(): Promise<object>

Gets entity properties

Returns

Promise<object>

Inherited from

Entity . getProperties

Source

src/entities.ts:128


getUserDataValue()

getUserDataValue(key): string

Parameters

ParameterType
keystring

Returns

string

Source

src/entities.ts:1951


hasTag()

hasTag(tag): boolean

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . hasTag

Source

src/entities.ts:140


newId()

newId(): void

Generates new id for this entity.

Returns

void

Inherited from

Entity . newId

Source

src/entities.ts:98


setProperties()

setProperties(props): Promise<any>

Sets entity properties

Parameters

ParameterType
propsobject

Returns

Promise<any>

Inherited from

Entity . setProperties

Source

src/entities.ts:133


setUserDataValue()

setUserDataValue(key, value): any

Parameters

ParameterType
keystring
valuestring

Returns

any

Source

src/entities.ts:1955


tag()

tag(tag): boolean

Adds a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . tag

Source

src/entities.ts:143


toJson()

toJson(): string

Returns

string

Source

src/entities.ts:1959


toString()

toString(): string

Returns a string representing the object

Returns

string

Inherited from

Entity . toString

Source

src/entities.ts:138


unTag()

unTag(tag): boolean

Removes a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . unTag

Source

src/entities.ts:146


fromJson()

static fromJson(json): ViewInfo

Parameters

ParameterType
jsonstring

Returns

ViewInfo

Source

src/entities.ts:1926


fromViewState()

static fromViewState(state): ViewInfo

Parameters

ParameterType
statestring

Returns

ViewInfo

Source

src/entities.ts:1930