Skip to content

Latest commit

 

History

History
140 lines (86 loc) · 2.79 KB

Builder.md

File metadata and controls

140 lines (86 loc) · 2.79 KB
title Builder
titleTemplate title - API / NativeScript
contributors false

Defined in: ui/builder/index.ts

Constructors

Constructor

new Builder(): Builder;

Returns

Builder

Properties

knownCollections

static knownCollections: Set<string>;

Defined in: ui/builder/index.ts


knownMultiTemplates

static knownMultiTemplates: Set<string>;

Defined in: ui/builder/index.ts


knownTemplates

static knownTemplates: Set<string>;

Defined in: ui/builder/index.ts

UI plugin developers can add to these to define their own custom types if needed

Methods

createViewFromEntry()

static createViewFromEntry(entry: ViewEntry): View;

Defined in: ui/builder/index.ts

Creates view from navigation entry

Parameters

Parameter Type Description
entry ViewEntry NavigationEntry

Returns

View


load()

static load(pathOrOptions: string | LoadOptions, context?: any): View;

Defined in: ui/builder/index.ts

Loads component from module with context

Parameters

Parameter Type
pathOrOptions string | LoadOptions
context? any

Returns

View


parse()

static parse(value: string | Template, context?: any): View;

Defined in: ui/builder/index.ts

Parameters

Parameter Type
value string | Template
context? any

Returns

View


parseMultipleTemplates()

static parseMultipleTemplates(value: string, context: any): KeyedTemplate[];

Defined in: ui/builder/index.ts

Creates an array of KeyedTemplates from string

Parameters

Parameter Type Description
value string The xml of the template to be parsed
context any -

Returns

KeyedTemplate[]