Home Manual Reference Source Repository
import {ViewManager} from 'ug-layout/view/ViewManager'
public class | source

ViewManager

Constructor Summary

Public Constructor
public

constructor(_viewFactory: *)

Member Summary

Public Members
public

created: *

public
public
public
public

Method Summary

Public Methods
public

create(args: *, options: {}): *

public

createWith(config: *, factory: *, options: {}): *

public
public

get(token: *, id: *): *

public

getAll(token: *): *

public

getRef(ref: *): *

public

has(token: *, id: *): boolean

public

query(query: *): *[]

public

queryRef(ref: *): *

public

queryToken(token: *, id: *): *

public

register(token: *, container: *, options: {})

public

resolve(config: *, options: {}): *

public

resolveOrCreate(args: *, options: {}): *

public

resolveOrCreateWith(config: *, factory: *, options: {}): *

public

subscribeToQuery(query: {token?: any, ref?: string}): Observable<ViewContainer<T>>

Notifies when the a view is registered matching the given query.

public

unregister(token: *, container: *, options: {})

Public Constructors

public constructor(_viewFactory: *) source

Params:

NameTypeAttributeDescription
_viewFactory *

Public Members

public created: * source

public destroyed: * source

public refChanges: * source

public resolved: * source

public viewInit: * source

Public Methods

public create(args: *, options: {}): * source

Params:

NameTypeAttributeDescription
args *
options {}
  • optional
  • default: {}

Return:

*

public createWith(config: *, factory: *, options: {}): * source

Params:

NameTypeAttributeDescription
config *
factory *
options {}
  • optional
  • default: {}

Return:

*

public destroy() source

public get(token: *, id: *): * source

Params:

NameTypeAttributeDescription
token *
id *

Return:

*

public getAll(token: *): * source

Params:

NameTypeAttributeDescription
token *

Return:

*

public getRef(ref: *): * source

Params:

NameTypeAttributeDescription
ref *

Return:

*

public has(token: *, id: *): boolean source

Params:

NameTypeAttributeDescription
token *
id *

Return:

boolean

public query(query: *): *[] source

Params:

NameTypeAttributeDescription
query *

Return:

*[]

public queryRef(ref: *): * source

Params:

NameTypeAttributeDescription
ref *

Return:

*

public queryToken(token: *, id: *): * source

Params:

NameTypeAttributeDescription
token *
id *

Return:

*

public register(token: *, container: *, options: {}) source

Params:

NameTypeAttributeDescription
token *
container *
options {}
  • optional
  • default: {}

public resolve(config: *, options: {}): * source

Params:

NameTypeAttributeDescription
config *
options {}
  • optional
  • default: {}

Return:

*

public resolveOrCreate(args: *, options: {}): * source

Params:

NameTypeAttributeDescription
args *
options {}
  • optional
  • default: {}

Return:

*

public resolveOrCreateWith(config: *, factory: *, options: {}): * source

Params:

NameTypeAttributeDescription
config *
factory *
options {}
  • optional
  • default: {}

Return:

*

public subscribeToQuery(query: {token?: any, ref?: string}): Observable<ViewContainer<T>> source

Notifies when the a view is registered matching the given query.

Params:

NameTypeAttributeDescription
query {token?: any, ref?: string}
  • optional
  • default: {}

public unregister(token: *, container: *, options: {}) source

Params:

NameTypeAttributeDescription
token *
container *
options {}
  • optional
  • default: {}